DEV Community

Discussion on: What The For Loop?

Collapse
 
mugizico profile image
Jean-Paul Mugizi
 [print(num) for num in range(20) if num % 2 !=0]

and you're done heh #vivapython

Collapse
 
yechielk profile image
Yechiel Kalmenson

But that would make for a much shorter blog post... 😉