# for loops = execute a block of code a fixed number of times. # You can iterate over a range, string, sequence, etc. # ---------------- EXAMPLE 1 ---------------- for x in range(1, 11): print(x) # ---------------- EXAMPLE 2 ---------------- for x in reversed(range(1, 11)): print(x) print("Happy New Year!") # ---------------- EXAMPLE 3 ---------------- for x in range(1, 11, 2): print(x) # ---------------- EXAMPLE 4 ---------------- credit_card = "1234-5678-9012-3456" for x in credit_card: print(x) # ---------------- CONTINUE ---------------- for x in range(1, 21): if x == 13: continue else: print(x) # ---------------- BREAK ---------------- for x in range(1, 21): if x == 13: break else: print(x)
Hey bro, I don’t know if you would have the time to do this. But PLEASE could you do a lua guide from scratch. There are barley any tutorials on YT. And none of them are very good. All I ask is just for around an hour course. But more would be a bonus
bro is the absolute goat. teaches people python for absolutely free refuses to take donations instead gives donations to St. Jude. this person is absolutely worth protecting.
Welp that made my understanding more clearer, at first I was on a course learning for loops and implementing it Into real situations like a website or software and I was confused but once I saw this it made the understanding of it easier thank you
I don’t know if this is considered programming but after a very long while of learning python and c++ i recently decided to start developing a roblox game in Lua (which im doing at this very moment while typing this reply)
One of the best tutorials I've seen. I am learning Godot (whose programming language is extremely similar to Python) and this has cleared up a lot! Will subscribe for more. You explained in a way many dont. What's the function? How can you use the function? What's a practical example? You did all of that, nicely done.
biggest gigachad because: A) Amazing tutorial B) Said tutorial is absolutely free C) Flat out refuses donations and says no give to a charity D) Has the gigachad picture in his pfp
His videos forces me to think why people even buy paid course. It isn't even like he doesn't incorporate other misc. important stuff aswell. Keep going on Bro!
hi! can you please tell how to use for i in range (a, b) and write all decimals between a and b please. I don't understand cause a and b can be only integer, how can i write all decimals (that is a float) between a and b? Thank you !
question:at 4:22 you have written ''else:'' wich i tried not to write it and see what happens.Nothing changed,so why did you write it (i am asking because of curiosity)
Hey bro I have a doubt . It's from python Gui windows. You told us how to create a new window by clicking a button . My problem is when we created a new window, then How can I get the strings value from Entry boxes in the newly created window?!?! I am stuck in this problem from last 20hrs please help . I can use the get method for Entry boxes in 1st window but after creating 2nd window i am unable to use the get method on the entry boxes of window 2 :(
# for loops = execute a block of code a fixed number of times.
# You can iterate over a range, string, sequence, etc.
# ---------------- EXAMPLE 1 ----------------
for x in range(1, 11):
print(x)
# ---------------- EXAMPLE 2 ----------------
for x in reversed(range(1, 11)):
print(x)
print("Happy New Year!")
# ---------------- EXAMPLE 3 ----------------
for x in range(1, 11, 2):
print(x)
# ---------------- EXAMPLE 4 ----------------
credit_card = "1234-5678-9012-3456"
for x in credit_card:
print(x)
# ---------------- CONTINUE ----------------
for x in range(1, 21):
if x == 13:
continue
else:
print(x)
# ---------------- BREAK ----------------
for x in range(1, 21):
if x == 13:
break
else:
print(x)
hi
Hey bro, I don’t know if you would have the time to do this. But PLEASE could you do a lua guide from scratch. There are barley any tutorials on YT. And none of them are very good. All I ask is just for around an hour course. But more would be a bonus
bro code -- range star pattern !!!!
Yes..scratch would be helpful!🙏😿
Thanks from india bro
bro is the absolute goat.
teaches people python for absolutely free
refuses to take donations
instead gives donations to St. Jude.
this person is absolutely worth protecting.
Finally! Someone who gets straight to the point!
i just need to say thank you, i have a programming exam tomorrow and your videos are saving my life
same
same
same
Same
bro that's even better than yout 12-hour tutorial piece. I had a small doubts how range can be iterated but now I understand it!
Welp that made my understanding more clearer, at first I was on a course learning for loops and implementing it Into real situations like a website or software and I was confused but once I saw this it made the understanding of it easier thank you
Best explanation and easy to understand. Thank you!!
Thank you brother, a very good video
Thank you! Im taking python course by myself but 100 day python instructor didnt explain well. This makes me understand superbly well!
bro's a gigachad, physically and mentally
You got me into programming
are you still in programming?
@@droneit7961 i still am but i stopped for months because i have a final exam and i’ll finally graduate ;))
Im also wondering, still grinding?
I don’t know if this is considered programming but after a very long while of learning python and c++ i recently decided to start developing a roblox game in Lua (which im doing at this very moment while typing this reply)
@@Qtaro-oh you learning loops logic and developed a game?
thank you so much for helping. i understand you so well.
This stuff was confusing in my course and in my book. This really helped clear up some confusion. Thanks man!
Very clear explanation. Thanks for your help
Keep up the good work! You helped me out and now i understand more and better! Thank you
High quality content. You win me as a subscriber.
print ("Thank you")
Thank u so much for this video. I was having trouble for understanding this function with my professor's videos. You explained it so well.
People who is watching in 2024
Me bro
@@YoussefAhmed-bb9qsSame Bro
2025
2025
25
thank you for getting straight to the point!
great video
Great tutorial! Very useful info.
You explain everything in such an easy to understand way
Can you guys imagine this legend made me master in python, and in school, students of my grade are just learning simple things of python
great
@@fustt2426 didn't expected my comment lol
One of the best tutorials I've seen. I am learning Godot (whose programming language is extremely similar to Python) and this has cleared up a lot! Will subscribe for more. You explained in a way many dont. What's the function? How can you use the function? What's a practical example? You did all of that, nicely done.
The missing colon in thumbnail of a coding video 😭😭😭
This episode is really interesting, keep it up!
biggest gigachad because:
A) Amazing tutorial
B) Said tutorial is absolutely free
C) Flat out refuses donations and says no give to a charity
D) Has the gigachad picture in his pfp
You are an excellent instructor!
These videos are good to enhance understanding after reading the theory
I was first confused at coding but ur explanation is marvelous i like how you teach programming
Thank you, that was such a straight forward explanation.
This way to explain it's really nice
Thanks! Short and helpful!
Ur the best
Nice and useful, tnx❤
have a sub bro, appreciate your free education and very easy to learn video!
nicely explained! thanks!
Good vids bro🤞🏽
bro, you're my hero
nice course❤
what a nice video
Really big thanks for your videos. Subbed! Trying to learn python and its not easy when our techer is not the best ;)
i might actually pass my practical tmrw tysm for this vid
i your videos just clear all my doughts . arigato gozaimasu !!
very useful
Once again great tutorial Bro Code
THANK YOUUUU!
Really helpful!
you are awesome
🤩
Thank You!
Bro you are the best guy for programming
bro you helped me with my coding project with this tutorial! Thankyou
Thanks!
His videos forces me to think why people even buy paid course. It isn't even like he doesn't incorporate other misc. important stuff aswell. Keep going on Bro!
Good "for" you
nice
great examples
thank you i had watched alot of videos and couldnt understand, yet i understand now good day.
NICELY DONE...❤
It's literally january 2025. Your happy new year wish matched lol
xD
You are awesome
Thank u so much bro
Congratulation for 1M subscribers🥳
love u bro u make me to understand ❤❤❤❤
Love from India ❤
That was helpful
Thanks 🙏🙏
Thanks
Thanks bro
tutorials are so goated
eeethank you so much you are asigma gigachad without you imma fail my exams
Thank you :)
your the best =))
Thank you
Just started coding, see you in a few years!
you rock Bro!
👏
#while loops = Used to execute loops infinite amount of times.
#for loops = used to execute loops a fixed number of times.
Can you tell me how you have two screens
Thank you Benson Adventure Time!
thx
1:47 thanks today is my birthday 🥳
What extension pack are you using to get you VS code layout to look like that?
i'm pretty sure the for loop executes faster than the while loop too.
hey whats an itiration i need some simple definiton
what IDE are you using?
its pycharm
Okay, so a "for" loop is sort of a countdown or timer?
hi! can you please tell how to use for i in range (a, b) and write all decimals between a and b please. I don't understand cause a and b can be only integer, how can i write all decimals (that is a float) between a and b? Thank you !
Slightly easier way to loop in reverse: `for x in range(10,1,-1):` = `for x in reversed(range1,11)):`
question:at 4:22 you have written ''else:'' wich i tried not to write it and see what happens.Nothing changed,so why did you write it (i am asking because of curiosity)
But can we do that is a set of arrays with timer or wait time in millis and make the different arrays do different things from one another? 😮
can you please make data structure algorithm course for C++? Please!!!!
how can i download your type of python
PyCharm
So if we want to use for loop on a list, do we turn the list into strings with .str() after the list
To turn a list into a string you use:
newString = "".join(your_list)
yes just go like this cars = ("Mercedes", "Audi", "BMW")
for car in cars:
print(car)
I feel a right numb nuts asking... but what does the X represent?
Every element inside the variable
Ya think?!?
Hey bro I have a doubt . It's from python Gui windows. You told us how to create a new window by clicking a button . My problem is when we created a new window, then How can I get the strings value from Entry boxes in the newly created window?!?! I am stuck in this problem from last 20hrs please help
.
I can use the get method for Entry boxes in 1st window but after creating 2nd window i am unable to use the get method on the entry boxes of window 2 :(
MERN app development?
I am having trouble with npm cuz they loads too much files
Can you make course on how to set up mern app development
break: breaks the loop at that iteration
for x in range(1, 21):
if x == 18:
break
print(x, end=' ')
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
for x in range(20):
if x == 18:
break
print(x, end=' ')
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Heyy , Can you upload Full stack MERN web development course ?? Please 🥺
Is "continue" really used for skipping?
Yeh