List Loop


I need help creating a list of 20 even number without using if loop but instead for loop

This is what i have soo far
for i in range(20)


<do not remove the three backticks above>


if loop does not exist, you mean if keyword or if condition?

we can achieve this with range, looking at the docs about range:

the range function has 3 parameters, including a step parameter, that sounds useful


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.