For loops in Python are easy 🔁

  Рет қаралды 448,078

Bro Code

Bro Code

Күн бұрын

Пікірлер: 183
@BroCodez
@BroCodez 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)
@doober.43
@doober.43 2 жыл бұрын
hi
@relentlesshvh
@relentlesshvh 2 жыл бұрын
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
@ShivamKumar-rz7uv
@ShivamKumar-rz7uv Жыл бұрын
bro code -- range star pattern !!!!
@AmnaRajnaz
@AmnaRajnaz 6 ай бұрын
Yes..scratch would be helpful!🙏😿
@AdityaPandya-l6n
@AdityaPandya-l6n 4 ай бұрын
Thanks from india bro
@godofyoshy
@godofyoshy 26 күн бұрын
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.
@Draurore
@Draurore Жыл бұрын
i just need to say thank you, i have a programming exam tomorrow and your videos are saving my life
@IamNotVenomous
@IamNotVenomous Ай бұрын
same
@kannonrhodes624
@kannonrhodes624 Ай бұрын
same
@sevvalkanberoglu9909
@sevvalkanberoglu9909 24 күн бұрын
same
@Zenoffx-fb9wg
@Zenoffx-fb9wg 23 күн бұрын
Same
@Rotta-_-
@Rotta-_- 2 күн бұрын
same
@grey8854
@grey8854 4 ай бұрын
Finally! Someone who gets straight to the point!
@Nk_Lifestyle1
@Nk_Lifestyle1 Жыл бұрын
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
@stanislawignacy
@stanislawignacy Жыл бұрын
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!
@김두현-s8p
@김두현-s8p 4 ай бұрын
Thank you! Im taking python course by myself but 100 day python instructor didnt explain well. This makes me understand superbly well!
@En1gma2u
@En1gma2u Жыл бұрын
Best explanation and easy to understand. Thank you!!
@samiscales
@samiscales 3 күн бұрын
he just explained to me in 5 minutes what my professor couldn’t in a week
@Qtaro-oh
@Qtaro-oh 2 жыл бұрын
You got me into programming
@droneit7961
@droneit7961 8 ай бұрын
are you still in programming?
@Qtaro-oh
@Qtaro-oh 8 ай бұрын
@@droneit7961 i still am but i stopped for months because i have a final exam and i’ll finally graduate ;))
@Iamtwohundredtwentyfive
@Iamtwohundredtwentyfive 6 ай бұрын
Im also wondering, still grinding?
@Qtaro-oh
@Qtaro-oh 6 ай бұрын
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)
@Buri0zaemon
@Buri0zaemon 6 ай бұрын
​@@Qtaro-oh you learning loops logic and developed a game?
@刌
@刌 Жыл бұрын
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
@fustt2426
@fustt2426 Жыл бұрын
great
@刌
@刌 2 ай бұрын
@@fustt2426 didn't expected my comment lol
@Animefan8050
@Animefan8050 9 ай бұрын
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.
@juancastrillon3011
@juancastrillon3011 20 күн бұрын
Thank you brother, a very good video
@ZenZangetsu
@ZenZangetsu 10 ай бұрын
This stuff was confusing in my course and in my book. This really helped clear up some confusion. Thanks man!
@julialouise969
@julialouise969 5 ай бұрын
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.
@karnikkumarsingh
@karnikkumarsingh 10 ай бұрын
I was first confused at coding but ur explanation is marvelous i like how you teach programming
@Hamyto41664
@Hamyto41664 6 ай бұрын
bro's a gigachad, physically and mentally
@minterdaly1265
@minterdaly1265 3 ай бұрын
You explain everything in such an easy to understand way
@JamalDid
@JamalDid Жыл бұрын
Keep up the good work! You helped me out and now i understand more and better! Thank you
@SukreLopezBeats
@SukreLopezBeats 10 ай бұрын
High quality content. You win me as a subscriber.
@mira_kurniawati5690
@mira_kurniawati5690 14 күн бұрын
Very clear explanation. Thanks for your help
@farhanbinsufian7233
@farhanbinsufian7233 Жыл бұрын
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!
@adamartinmusic
@adamartinmusic 11 ай бұрын
thank you so much for helping. i understand you so well.
@Jggapp016
@Jggapp016 2 жыл бұрын
This episode is really interesting, keep it up!
@holiveirajr1
@holiveirajr1 Ай бұрын
Great tutorial! Very useful info.
@nkay_02
@nkay_02 2 ай бұрын
These videos are good to enhance understanding after reading the theory
@fastrobreetus
@fastrobreetus 7 ай бұрын
You are an excellent instructor!
@denissemaya475
@denissemaya475 2 ай бұрын
thank you for getting straight to the point!
@jespero94
@jespero94 4 ай бұрын
Really big thanks for your videos. Subbed! Trying to learn python and its not easy when our techer is not the best ;)
@sameerjain9174
@sameerjain9174 2 жыл бұрын
Bro you are the best guy for programming
@AyanikaGhoshDastidar
@AyanikaGhoshDastidar 5 ай бұрын
i might actually pass my practical tmrw tysm for this vid
@GVSdude20
@GVSdude20 8 ай бұрын
bro you helped me with my coding project with this tutorial! Thankyou
@buffoonoutdoors
@buffoonoutdoors 3 ай бұрын
print ("Thank you")
@ToniMam42
@ToniMam42 6 ай бұрын
Thank you, that was such a straight forward explanation.
@Bosy99616
@Bosy99616 Жыл бұрын
bro, you're my hero
@lamaXD
@lamaXD Ай бұрын
Ur the best
@jorgegalvis554
@jorgegalvis554 4 ай бұрын
This way to explain it's really nice
@IamNotVenomous
@IamNotVenomous Ай бұрын
eeethank you so much you are asigma gigachad without you imma fail my exams
@edwardh7985
@edwardh7985 7 ай бұрын
great video
@GTV_367
@GTV_367 Жыл бұрын
Good vids bro🤞🏽
@FahimMalikOfficial
@FahimMalikOfficial 5 ай бұрын
have a sub bro, appreciate your free education and very easy to learn video!
@morpheus_circuit
@morpheus_circuit Жыл бұрын
Once again great tutorial Bro Code
@Kratosin2.0
@Kratosin2.0 3 ай бұрын
Thanks! Short and helpful!
@rebeccabreez8928
@rebeccabreez8928 Жыл бұрын
i your videos just clear all my doughts . arigato gozaimasu !!
@niknam.344
@niknam.344 4 ай бұрын
Nice and useful, tnx❤
@matihanan3281
@matihanan3281 2 ай бұрын
THANK YOUUUU!
@Dev_bhog
@Dev_bhog Жыл бұрын
thank you i had watched alot of videos and couldnt understand, yet i understand now good day.
@AkshayKp-wz5dg
@AkshayKp-wz5dg 4 ай бұрын
Love from India ❤
@HsuMonMonThant
@HsuMonMonThant Жыл бұрын
Thank u so much bro Congratulation for 1M subscribers🥳
@shaminasudheer6285
@shaminasudheer6285 2 ай бұрын
People who is watching in 2024
@YoussefAhmed-bb9qs
@YoussefAhmed-bb9qs 2 ай бұрын
Me bro
@hayatiayhan1524
@hayatiayhan1524 2 ай бұрын
@@YoussefAhmed-bb9qsSame Bro
@lucaschen8992
@lucaschen8992 24 күн бұрын
2025
@Tiyaahhhh
@Tiyaahhhh 19 күн бұрын
2025
@JihadHossen-wh7hw
@JihadHossen-wh7hw 17 күн бұрын
25
@varshinisekhar4857
@varshinisekhar4857 Жыл бұрын
you are awesome 🤩
@rhinosorus
@rhinosorus Ай бұрын
It's literally january 2025. Your happy new year wish matched lol
@ShayanGGYT
@ShayanGGYT 27 күн бұрын
xD
@kspivey88
@kspivey88 4 ай бұрын
nicely explained! thanks!
@Tettzz
@Tettzz 7 ай бұрын
Just started coding, see you in a few years!
@Buri0zaemon
@Buri0zaemon 6 ай бұрын
Really helpful!
@mythicpulse-i9o
@mythicpulse-i9o Жыл бұрын
what a nice video
@jwl796
@jwl796 Жыл бұрын
nice course❤
@mo-ab7315
@mo-ab7315 Жыл бұрын
tutorials are so goated
@WINDOWSUSER-q4s
@WINDOWSUSER-q4s Жыл бұрын
NICELY DONE...❤
@n8an811
@n8an811 3 ай бұрын
Thanks!
@edikblank3759
@edikblank3759 Жыл бұрын
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
@sunlightlord12
@sunlightlord12 4 ай бұрын
Thank You!
@ghusandgamin
@ghusandgamin 2 жыл бұрын
That was helpful Thanks 🙏🙏
@Rawman_56
@Rawman_56 Жыл бұрын
You are awesome
@FundamSrijan
@FundamSrijan 25 күн бұрын
The missing colon in thumbnail of a coding video 😭😭😭
@DRACULACollection
@DRACULACollection 11 ай бұрын
love u bro u make me to understand ❤❤❤❤
@TajikTungi-ot5ru
@TajikTungi-ot5ru 11 күн бұрын
print("best in the game: no cap")
@rajakm7544
@rajakm7544 Жыл бұрын
very useful
@tara2337
@tara2337 11 ай бұрын
you rock Bro!
@blucky983
@blucky983 2 жыл бұрын
Thanks bro
@joncaldwell4753
@joncaldwell4753 6 ай бұрын
Good "for" you
@abdulwahidhamidy6909
@abdulwahidhamidy6909 Жыл бұрын
Thanks
@pedicle5509
@pedicle5509 Жыл бұрын
Thank you :)
@abdulhannan-18
@abdulhannan-18 Жыл бұрын
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
@Cruzfire10
@Cruzfire10 Жыл бұрын
Thank you Benson Adventure Time!
@SavageScientist
@SavageScientist 2 жыл бұрын
great examples
@GaryChike
@GaryChike 9 ай бұрын
Slightly easier way to loop in reverse: `for x in range(10,1,-1):` = `for x in reversed(range1,11)):`
@moniquebrasilbaptista1989
@moniquebrasilbaptista1989 Жыл бұрын
Thank you
@pjm3005
@pjm3005 Жыл бұрын
i'm pretty sure the for loop executes faster than the while loop too.
@gbzedaii3765
@gbzedaii3765 6 ай бұрын
#while loops = Used to execute loops infinite amount of times. #for loops = used to execute loops a fixed number of times.
@Ggxzstbccgbnjgcx
@Ggxzstbccgbnjgcx 5 ай бұрын
1:47 thanks today is my birthday 🥳
@dennisderekas4005
@dennisderekas4005 4 ай бұрын
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)
@bigfly4167
@bigfly4167 9 ай бұрын
What extension pack are you using to get you VS code layout to look like that?
@MegaKrendelek
@MegaKrendelek 4 ай бұрын
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 !
@ramial_rashid4440
@ramial_rashid4440 11 ай бұрын
thx
@Trivenikandru221
@Trivenikandru221 7 ай бұрын
👏
@jenis-01
@jenis-01 2 жыл бұрын
can you please make data structure algorithm course for C++? Please!!!!
@vividdaydream1516
@vividdaydream1516 10 ай бұрын
Okay, so a "for" loop is sort of a countdown or timer?
@MassMen
@MassMen 8 ай бұрын
Can you tell me how you have two screens
@DIYRobotGirl
@DIYRobotGirl Жыл бұрын
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? 😮
@PraviLukijanJC
@PraviLukijanJC 7 ай бұрын
thanks for distracting me from ninjago overture theme that has been stuck in my head for hours. i am a c++ programmer but i want to learn python so i know complicated languages.
@javierchavarria1386
@javierchavarria1386 Жыл бұрын
what IDE are you using?
@BallzRolls
@BallzRolls Жыл бұрын
its pycharm
@leongriggs3602
@leongriggs3602 Ай бұрын
I feel a right numb nuts asking... but what does the X represent?
@elbibokoning7889
@elbibokoning7889 Ай бұрын
Every element inside the variable
@ChewwyPew
@ChewwyPew Жыл бұрын
So if we want to use for loop on a list, do we turn the list into strings with .str() after the list
@Lithium50
@Lithium50 Жыл бұрын
To turn a list into a string you use: newString = "".join(your_list)
@Ndujlz
@Ndujlz Жыл бұрын
yes just go like this cars = ("Mercedes", "Audi", "BMW") for car in cars: print(car)
@yunishmanandhar4817
@yunishmanandhar4817 Жыл бұрын
hey whats an itiration i need some simple definiton
@gokusatan-f7p
@gokusatan-f7p Ай бұрын
how can i download your type of python
@koga-roblox2280
@koga-roblox2280 27 күн бұрын
PyCharm
@vaibhavmalhotra4855
@vaibhavmalhotra4855 9 ай бұрын
""" Here I have added while loop in the nested for loops So if the user type a letter or a number, it will ask you to type a symbol instead Yes I have changed the variable from rows and columns to length and breadth respectively to relate this code more to Math """ #Print a rectangle using symbols print("Rectangle using symbols") length = int(input("Enter number of symbols you want horizontally: ")) breadth = int(input("Enter the number of symbols you want vertically: ")) symbol = str(input("Enter the symbol: ")) for x in range(breadth): for y in range(length): while symbol.isalpha() or symbol.isdigit(): # While condition if the user type any letter or number then the loop will run symbol = str(input("Enter the symbol not a letter from alphabet or a number: ")) print(symbol, end="") print()
@rayforever
@rayforever 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
@Reymax164
@Reymax164 6 ай бұрын
Coming from Java, Python is heck confusing for me. I understand other C based languages such as C# and C++ better 😅
@Reymax164
@Reymax164 6 ай бұрын
Tbf, Java, C# and C++ are like the children of C so Python will feel alot different 🤔 Can't jump into OOP right away
@harrisonwade9002
@harrisonwade9002 7 күн бұрын
why did the way he spoke make it easier???
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 460 М.
Nested loops in Python are easy ➿
5:35
Bro Code
Рет қаралды 364 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
الوراثة في لغة جافا المحاضرة الثانية
51:44
يوسف عبدالزهرة كاطع
Рет қаралды 1
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 268 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 359 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 181 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 645 М.
What is For Loop in Python | Data on Repeat | Python Tutorials
18:43
Python For Loops - Python Tutorial for Absolute Beginners
14:42
Programming with Mosh
Рет қаралды 651 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 481 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН