Python Programming Tutorial - 10 - Comments and Break

+5 Mr. Computer · January 13, 2015
for n in range(100):
    if n % 4 is 0:
        print(n)


Post a Reply

Replies

Oldest  Newest  Rating
+2 Sunday Akinduro · January 22, 2015
for x in range(4, 100, 4):
print(x)
+1 devraj tripathi · January 26, 2015
for n in range(101):
    if n%4 is 0:
        print(n)
+1 Tom Boardman · January 27, 2015
for n in range(0, 104, 4):
print(n)
+1 alberto Romo · February 4, 2015
number4 = 100


for n in range(101):
if n is number4:
print(n)
elif (n%4 is 0):
print (n)
  • 1

Python

107,046 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator