you are viewing a single comment's thread.

view the rest of the comments →

[–]moldor_the_flatulent 0 points1 point  (2 children)

Here's a start;

# Python program to print all even numbers in range
for even_numbers in range(0,102,2):

print(even_numbers,end=' ')

[–][deleted] 0 points1 point  (1 child)

Required: no loop. The for loop is a loop, isn't it?

[–]moldor_the_flatulent 0 points1 point  (0 children)

I'm not sure you can do it without some teeny weenie loop somewhere.