## Python Programming Tutorial – 10 – Comments and Break

GitHub – https://github.com/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/

• Views:268,628 views
• Rating:
• Categories:
• Tags:

raceregos says:

for n in range(101):
if n % 4 == 0:
print(n)

JUNIOR AYUK ENOW says:

for jun in range(100):
if jun % 4 == 0:
print(jun)
print(“n”)

for i in range(0, 101, 4):
print(i, ” is a multiple of 4!”)

jia yong says:

for x in range(101):
if x % 4 is 0:
print(x)

Spence says:

Absolutely love all your videos, this series is the best series on learning python, Im going to school right now and I showed my professor your videos and he now uses them for the class. Your awesome man thank you for all these.

this one worked for me too
magicNumber =24
for x in range (0,110,4):
if x is magicNumber:
print(x,”magicNumber”)
break
else:
print(x)

defialpro says:

print(range(list(0,101,4)))

Ivy Li says:

homework solution:

for a in range (1,101):
if a%4 == 0:
print(a ,end=’ ‘)

G.G.G says:

for i in range(101):
if i % 4 == 0:
print(i)

done

ChengBo Zhang says:

buttcrack = 4
while buttcrack <= 100: print(buttcrack) buttcrack += 4

Mohammed Khresat says:

for n in range(101):
p = n % 4
if p is 0 :
print(n)
that’s my homework it took me like 5 minutes longer than i thougt

Nikolaj Daniel says:

This worked for me:
for n in range(0, 101, 4):
print (n)

GhostHacker _1 says:

for x in range (4, 100, 4):
print(x)

Varun Vishwakarma says:

Bucky is Awesome —
for n in range(100):
if n%4 is 0:
print(n)

Jon says:

for n in range(0, 101, 4):
print(n)

felt challenged but it only took 3 seconds ):

edit: was fun to find out on my own though

toxic l says:

for n in range(101):
if n%4 is 0 and n > 0:
print(n)

Sushant Burde says:

number = 4
for n in range(101):
if n is number:
print(n)
number += 4

abi crazieeee says:

for n in range(1, 101):
if (n % 4) is 0:
print(n, ” is multiple of 4″)

Solution of Homework:

for x in range(1,101):
if x % 4 is 0:
print(x)

Sami Eltamawy says:

Use to concatinate int

print(“Value is ” + str(x))

misty thelion says:

for n in range(101):
if n % 4 is 0:
print(n, “is a multiple of 4”)

Cesar Reinoso says:

for n in range(101):
if n % 4 is 0:
print(n, ‘Multiple’)

Jogga Jasus says:

for x in range(1 , 101):
if x%4==0:
print(x)

Islam ALazbawy says:

for x in range(1, 101):
if x%4 is 0:
print(x , “Is a number that’s divided by 4”)
else:
print(x)

Mohan Sharma says:

x = 4while x < 101:     print(x)     x +=1*4

Julia Fagas says:

Challenge:
n=1
while n<25:
print(n*4)
n+=1

Naveenraj Kumarakrishnan says:

for i in range(1,100):
if i%4==0 :
print(i)

Zeperd gaming says:

this worked for me tell me if im wrong
for w in range(0,100,4):
print(w)

Arsenius says:

great series but downvoting for calling it a hashtag 😀

THE GRTEAT PIRATE FREE STUFF says:

In hour i learned more then i learned in my school in 3 month’s

Tunde Olowu says:

A program to list the prime numbers between a range, and count how many there are:

t = 0
for n in range(2, 300):
for m in range(2, n+1):
if n % m is 0:
if m < n: break if m is n: print(n) t += 1 continue print("There are ", t, " prime numbers between 2 and ", n) Output: ... 239 241 251 There are 54 prime numbers between 2 and 299 Process finished with exit code 0 Why isn't it going beyond 251? Any help, please! Using PyCharm 2017.3

shyam kumar says:

for n in range(0,101,4):
if n != 0:
print(n)

this must be the correc answer