Python Programming Tutorial - 10 - Comments and Break

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Ok Bucky, here's my homework.
Thank you for teaching!

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

dimitry
Автор

here you go mr bucky

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

thank you for teaching me, cant wait to watch the rest of your videos, you're really not like any other person teaching python, you keep me intrigued and ready to learn and make me laugh all at the same time. thank you for that!

mittensandmuzzles
Автор

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

uncharted
Автор

Been going through these and it's very refreshing to have found someone making tutorials who has a bit of personality. Thanks for these!

jamesriley
Автор

Bucky i've gotta say I am very impressed with your tutorials as not only were they really good and clear before, but now that you even set a bit of homework which helps to remember things and figure some things out it brings them to a whole  new level of their own. 

mitok
Автор

'''
This program will
print all numbers (from 0 to 100)
that can be divided by 4 with no
remainder
'''

for n in range(4, 101):
if n % 4 is 0:
print(n, "is a number that can be divided by 4")


I know he won't see this but just helping others who might want to know :).

ron
Автор

I recommend that at the if statement instead of typing, ,n is magicNumber" type, ,n == magicNumber".
The, ,is'' function is available only for byte or string, so this method would work only if the Magic Number was <=256. Replacing, ,is'' with, ,=='' allows you to go way higher than 256!

cezarprodan
Автор

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.

bigdeltaguy
Автор

for x in range(101):
if (x%4) is 0:
print(x, "is a multiple of 4 between 0 to 101")

bhimireddyananthreddy
Автор

I'm doing these tutorials in 2023 despite them being a little outdated because I've been itching to do another New Boston tutorial since the "how to make a robot" tutorial series that never got finished. Very happy to see Bucky back -- even though these vids are super old -- and I'm already learning a lot.

piattrocks
Автор

I just started learning python, and I didnt know ANYTHING before I started. I'm getting better day by day... seeing all your content after 9-12 years sicne they were posted

kalpadrinkwater
Автор

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

amazing tutorials man, keep it up!!

Vagelishan
Автор

Man, I cannot thank you enough for how good your videos are. It's 3am in this morning and the first thing I was turning on my PC and learning more. Thanks!

MCKBURNHOUSE
Автор

for number in range(101):
if number % 4 is 0 and number is not 0:
print(number, " is a multiple of 4")


i know a lil bit of python and i was watching one of your videos about threads and playlist kept going and i enjoyed your videos so much that i decided to start the whole series, now look at me im also doing homework. way to go Bucky!

magnetichuman
Автор

A creative approach 

a = 0

for n in range(1, 101):
    if n%4 is a:
        print(n)
    else:
        '/n'

Awesome tuts are the best teacher ever!

its_maalik
Автор

I have always wanted to learn python but it seemed intimidating. You make learning this fun and exciting, something many can't achieve in their teaching. I, and I'm sure many others, can't thank you enough for these uploads!

GAment_
Автор

Thank You sir for the effortless learning!

#find the numbers which are divisible by 4 in the range 0 - 100

for x in range(101):
if x % 4 ==0:
print(x, "is divisible by 4")
elif x % 4 != 0:
print (x)

sohomdas
Автор

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

ShubhankarNathAECian
Автор

x = 0
for n in range(1, 101):
    if n%4 is x:
        print(n, " Is a multiple of four!")

or..

for z in range(1, 101):
     if z % 4 == 0:
        print(z, "Is a Multiple of Four!")

RetardedGuyxD
Автор

Thank you so much for your tutorials, Bucky!!
Here is my homework:

for x in range(101):
if x % 4 == 0:
print(x, "is multiple of 4")

kayleexxo