While loops in Python are easy ♾️

  Рет қаралды 333,296

Bro Code

Bro Code

Күн бұрын

#python #tutorial #course
while loop = execute some code WHILE some condition remains true
00:00:00 intro
00:00:50 example 1
00:01:50 infinite loop
00:02:25 example 2
00:03:39 example 3
00:05:08 example 4
00:06:35 conclusion

Пікірлер: 218
@BroCodez
@BroCodez Жыл бұрын
#while loop = perform some code WHILE some condition remains true # ---------------- EXAMPLE 1 ---------------- name = input("Enter your name: ") while name == "": print("You did not enter your name!") name = input("Enter your name: ") print(f"Hello {name}") # ---------------- EXAMPLE 2 ---------------- age = int(input("Enter your age: ")) while age < 0: print("Age can't be negative") age = int(input("Enter your age: ")) print(f"You are {age} years old") # ---------------- EXAMPLE 3 ---------------- food = input("Enter a food you like (q to quit): ") while not food == "q": print(f"You like {food}") food = input("Enter another food you like (q to quit): ") print("bye") # ---------------- EXAMPLE 4 ---------------- num = int(input("Enter a # between 1 - 10: ")) while num < 1 or num > 10: print(f"{num} is not valid") num = int(input("Enter a # between 1 - 10: ")) print(f"You picked the number {num}")
@rm-vo5zu
@rm-vo5zu Жыл бұрын
thank u soo much bro for the video as well as the code here☝
@alexak8671
@alexak8671 Жыл бұрын
Thank you for your efforts 🤩!!
@christopherbermudez1528
@christopherbermudez1528 Жыл бұрын
You explained this so clearly. Easiest “while” video to understand for me thus far. Liked.
@buenolvr
@buenolvr Жыл бұрын
This*
@simonaubrey6326
@simonaubrey6326 Жыл бұрын
@@buenolvrthus is grammatically correct here
@iSwearToCod
@iSwearToCod Жыл бұрын
@@buenolvr if it said this it would be incorrect. dafuq
@_Debs_16
@_Debs_16 2 ай бұрын
innit bro this guy is brilliant
@billalkhwaja851
@billalkhwaja851 Жыл бұрын
Thank you very much, this is the first time I have actually completely understood how to implement a while loop without having to deal with infinite responses. Your video was great and helped a lot. Cheers
@saturncosmos
@saturncosmos Жыл бұрын
Thank you so much for this video! I have been stuck on while loops for two days. I understand it so much more now. You rock!
@buenolvr
@buenolvr Жыл бұрын
are u a computer
@sparkcodez
@sparkcodez Жыл бұрын
​@@buenolvr 😂
@pirunnyrkki518
@pirunnyrkki518 11 ай бұрын
This was the best explanation video so far that i found. And probably the best Coding based teaching YT I have came across.
@ssigitas69
@ssigitas69 Жыл бұрын
Wow. Thats what I needed!!!! I am learning and learning loops and anyway can't understand how it's works. Maybe now I will. Thanks Bro! Now I need to find you video for for loop as well ;)
@myeducationvlogs8483
@myeducationvlogs8483 Жыл бұрын
You became my favourite coder and teacher💯❤️🤝😊
@josephaddae7598
@josephaddae7598 3 ай бұрын
its proggraming!!
@Iskm.28
@Iskm.28 8 ай бұрын
Thanks! This has been the best and easiest tutorial for me to understand 👏 The explanation is quit simple and clear to the point. 🔥
@crimsonphoenix8907
@crimsonphoenix8907 4 ай бұрын
man you explained this so clearly it makes me wonder why I’m having so much difficulty with it
@dhruvaraj4704
@dhruvaraj4704 10 ай бұрын
I've been working on this from months and you made me understand in minutes 😍
@jeanjuste3520
@jeanjuste3520 Ай бұрын
Your youtube channel has been real helpful, thank you!
@focuz24
@focuz24 Жыл бұрын
Thanks!! I stuck in while loop as well. Now I understand how it works.
@bilal.rk09
@bilal.rk09 Жыл бұрын
You are one of the best tutor in youtube for Python tutorials.
@buenolvr
@buenolvr Жыл бұрын
i can show u a toutoriaalalaalal
@abdulserwanga6946
@abdulserwanga6946 8 ай бұрын
Following from Uganda , This is the best explanation have received . finally understood while loops
@adailsoncarlos3122
@adailsoncarlos3122 3 ай бұрын
Bro, i just spend a lot of time searching how to exit a while loop with one key and did not finding anything that make some sense to me and you explained it in six minutes, thanks a lot!
@DyNaMiC_GG
@DyNaMiC_GG 18 сағат бұрын
thanks man , it looked so easy but it is actually tough when we learn it for the first time .
@LilJollyJoker
@LilJollyJoker 9 ай бұрын
Finally, an easy explanation! Thank you!
@ZH1NBAD
@ZH1NBAD Жыл бұрын
you are really a Bro for teaching us while loop and making it looks so easy thanks !
@lopexaaz.kitchen628
@lopexaaz.kitchen628 6 ай бұрын
Best Vid to understand the while Loop. Great job
@evan._.7436
@evan._.7436 11 ай бұрын
Thanks for the help, much better than coursera's courses, and their explanation on loops in general. Subscribed!
@fluffypieee
@fluffypieee 8 ай бұрын
What an informative video!! I find this video super helpful with such clear explanations!! Thank yoou so much!
@anxures7412
@anxures7412 10 ай бұрын
The best video to explain the while loop ever
@CyberTronics
@CyberTronics Жыл бұрын
Finally a video that explains it from scratch with easy examples rather than rocket science
@MateusLima-iu5wc
@MateusLima-iu5wc 3 ай бұрын
bro, i love you. you literally did just saved me
@MRCLEEN
@MRCLEEN Жыл бұрын
I now understand while loops better after watching this thank you
@jameswilliam2072
@jameswilliam2072 8 ай бұрын
simple yet very clear and easy to understand.. thank you so much
@rhapsody1819
@rhapsody1819 Жыл бұрын
Thanks bro! You're helping me a lot
@jeshy9810
@jeshy9810 Жыл бұрын
Thank you! You're a great teacher!
@DenshaOtoko2
@DenshaOtoko2 9 ай бұрын
This makes so much sense now. Thank you Bro Code.
@AnzhelikaSharipbekkyzy
@AnzhelikaSharipbekkyzy 3 ай бұрын
thank you very much for the best explaining even our professor could not explain such good as you for 6 min i understood everything that we were learning for 1 week
@serdanaksunger2942
@serdanaksunger2942 7 ай бұрын
you are the only one in yt who explain correctly
@Dragonis91
@Dragonis91 Жыл бұрын
Such a good video!! Thank you so much for this tutorial it helped a lot.
@senpaigt911
@senpaigt911 Жыл бұрын
Thank you to help us improve our programing
@cse-17akashkumar32
@cse-17akashkumar32 Жыл бұрын
You are doing a great work
@Native_love
@Native_love Жыл бұрын
Beautiful! YOU ARE THE BEST!!!
@lesclart
@lesclart Жыл бұрын
thanks for teaching me the WoW loop :)
@rikuyaosawa9495
@rikuyaosawa9495 4 ай бұрын
Showing this to my girlfriend who is learning to code. Thanks!!
@vaibhavmalhotra4855
@vaibhavmalhotra4855 3 ай бұрын
I've been in tech studies for long time but now I came to fully understand how while loop works
@user-hd4nu8zd2q
@user-hd4nu8zd2q Ай бұрын
A very concise explanation as expected.
@TheJGX20
@TheJGX20 5 ай бұрын
I'm not even learning python, this is just good programming explanation, thank you!
@vortback
@vortback Жыл бұрын
BEST TUTORIAL EVER! THANK YOU SO MUCH MY EXAM IS TOMMOROW
@alexak8671
@alexak8671 Жыл бұрын
Thank you for the clear explanation 🤩!!
@Gstt9
@Gstt9 3 ай бұрын
bro, you is the best i'm getting a lot better thanks
@user-ly5we6xl4v
@user-ly5we6xl4v 8 ай бұрын
NICELY DONE BRO...❤
@user-we7gq1zy4o
@user-we7gq1zy4o 7 ай бұрын
Thank you very much now I'm learning data science course it will be more useful for me to understand the python programming language very easily
@mirarzk222
@mirarzk222 Жыл бұрын
in love! finally i understand while !!
@kaitlinespinal5300
@kaitlinespinal5300 5 ай бұрын
This tutorial helped so much with understansding the for while loop
@LA-cy1zj
@LA-cy1zj Жыл бұрын
that explanation was so good I transcribed some of it for my notes verbatim!
@dishant_7
@dishant_7 3 ай бұрын
You made it so easy . Thanks bro ❤
@golamkibriaofficial320
@golamkibriaofficial320 5 ай бұрын
This was really an interesting video in term of learning python and whole the tutorial is really appreciated just for helping us giving detailed information........................................
@affable.pebble
@affable.pebble 6 ай бұрын
This is pretty fun, thanks!
@koofrehdavies2435
@koofrehdavies2435 2 ай бұрын
Excellently explained
@joeprodebadezt217
@joeprodebadezt217 Жыл бұрын
This is the best explanation ive had
@CodeSyntax0101
@CodeSyntax0101 8 ай бұрын
Bro. Now this is bro code. You are a good teacher👌👌👌👌
@Vronsky1997
@Vronsky1997 Жыл бұрын
Big thank you for your excellent video!
@Uberdurden
@Uberdurden 9 ай бұрын
good work bro!
@_Debs_16
@_Debs_16 2 ай бұрын
best tutor, even better than my computing teacher🤣
@cvreddy4574
@cvreddy4574 4 ай бұрын
Thanks man!! It's a good explanation
@josetijerino5198
@josetijerino5198 3 ай бұрын
thanks for making this easy to understand.
@moniquebrasilbaptista1989
@moniquebrasilbaptista1989 Жыл бұрын
Thank you for the easy and clear explanation! Loved it!
@dimitrioszafeiropoulos673
@dimitrioszafeiropoulos673 4 күн бұрын
nice video, thanks Bro!!!
@vizcarraorozco4740
@vizcarraorozco4740 8 ай бұрын
awesome!!!! Thanks!!!!
@ahmadrandhawa238
@ahmadrandhawa238 Жыл бұрын
Good one sir
@born2die841
@born2die841 Жыл бұрын
helpfull thanks :)
@takeactions
@takeactions Жыл бұрын
You are really a Master.
@mari23ification
@mari23ification 5 ай бұрын
Thank you very much for doing this.
@mrrelm5949
@mrrelm5949 Жыл бұрын
thanks to you i undrstand this while loop thank you so much
@farahbaliki4680
@farahbaliki4680 Жыл бұрын
I've been finding it so difficult when it comes to while loops, you made this so easy thank you! But is it not necessary to use else: statement??
@ashkira73
@ashkira73 Жыл бұрын
Not necessarily. if a while loop exits due to the condition being false, the upcoming lines of code will be executed. Loops can either be exited with the while condition being false, or with the help of 'break' #example: i=1 while i in range(6): print(i) i+=1 if i==6: break else: print("no break") In this code, since break is used to exit the loop, the else statement doesn't get executed. but if the if block is commented out, you could see that it runs the else statement after the loop gets exited.
@JadenTheAnimator
@JadenTheAnimator Ай бұрын
thanks a lot bro im starting python and this helps
@mayurkanth6987
@mayurkanth6987 Жыл бұрын
Best Bro 😀
@amrhassan8137
@amrhassan8137 6 ай бұрын
Thank you for making it simple.
@HebaZainab-wg5dk
@HebaZainab-wg5dk 9 ай бұрын
You explained soo clearly , i have a test tomorrow on this chapter and this video helped a lot , thankyou
@bobbye8964
@bobbye8964 9 ай бұрын
good luck on your test. i got exam in jan coming up for coding in python.
@Iamandrey
@Iamandrey 7 ай бұрын
you are awesome! thanks a lot!
@fastrobreetus
@fastrobreetus Ай бұрын
great video
@r.suleymansari4643
@r.suleymansari4643 Ай бұрын
thank you, it was so useful
@abdulmalikhakimi989
@abdulmalikhakimi989 Жыл бұрын
This was fu***king awesome and understandable thank you so much ❤
@Hamyto41664
@Hamyto41664 14 күн бұрын
Bro explains as good as networkchuck in a unique way.
@benevolentnkrumah4427
@benevolentnkrumah4427 Жыл бұрын
I love you.. even this is not on Google.. thanks Bro Code
@madhusudhanchinnala1986
@madhusudhanchinnala1986 Жыл бұрын
Great 🎉
@hishamdebis9490
@hishamdebis9490 3 ай бұрын
Great
@LovelyJordy
@LovelyJordy 10 ай бұрын
This was great thank you.
@dnzz453
@dnzz453 Жыл бұрын
This vid was soo easy and fun thanks
@TypicalVole2437
@TypicalVole2437 Жыл бұрын
this was easy thanks bro
@AlexFarm00
@AlexFarm00 2 ай бұрын
love you bro👾
@GearheadModding
@GearheadModding 11 ай бұрын
thanks super helpful
@jwl796
@jwl796 6 ай бұрын
nice video❤
@Poem_AI
@Poem_AI 10 ай бұрын
Thanks, Bro! ... Subscription is on the way!
@ashishraj9850
@ashishraj9850 Жыл бұрын
Thanks bro 🤜
@yns9407
@yns9407 10 ай бұрын
you saved some lives here
@riccardoholder6378
@riccardoholder6378 3 ай бұрын
thanks for making this video, name = input("Please enter your name and no symbols or number: ") while name.isalpha() == False: print("You have either enter a number or symbol in your name, please try again:") name = input("Please enter your name and no symbols or number: ") else: print(f"Hello there {name}, thank you for following instructions")
@omex469
@omex469 8 ай бұрын
Thanks man!!
@theamithsingh
@theamithsingh 3 ай бұрын
bro before ho definitely! 💪
@Nk_Lifestyle1
@Nk_Lifestyle1 Жыл бұрын
So basically for example one if the user does not input their name, the while loop will keep asking for the user name until the condition is true and print out hello to the user
@AbdulRaffayOfficial
@AbdulRaffayOfficial 11 ай бұрын
if you put the command again of asking names
@Eastcoast_Rds
@Eastcoast_Rds Жыл бұрын
Great vid
@shaswatachowdhury9032
@shaswatachowdhury9032 5 ай бұрын
Thanks a lot
@user-lt5ew6xx9w
@user-lt5ew6xx9w 9 ай бұрын
How can it be so easy!!! thanks a lot!
@xamidillo1486
@xamidillo1486 7 сағат бұрын
Thanks bro❤
@youssefmarak1511
@youssefmarak1511 10 ай бұрын
thank u very much
@kavindupansilu1556
@kavindupansilu1556 Жыл бұрын
Super
@Ghostlynotme445
@Ghostlynotme445 7 ай бұрын
You need put this whole python videos to compilation so we know tools about python
Nested loops in Python are easy ➿
5:35
Bro Code
Рет қаралды 277 М.
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,3 МЛН
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 99 МЛН
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 434 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 252 М.
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Bro Code
Рет қаралды 126 М.
How To Use Recursion In Python
8:50
Taylor's Software
Рет қаралды 6 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,7 МЛН
If statements in Python are easy (if, elif, else) 🤔
8:21
Bro Code
Рет қаралды 119 М.
Python For Loops - Python Tutorial for Absolute Beginners
14:42
Programming with Mosh
Рет қаралды 571 М.
For loops in Python are easy 🔁
5:06
Bro Code
Рет қаралды 274 М.
Python compound interest calculator 💵
7:36
Bro Code
Рет қаралды 39 М.
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,3 МЛН