Тёмный

break and continue in Python | Python Tutorial - Day #19 

CodeWithHarry
Подписаться 7 млн
Просмотров 512 тыс.
50% 1

Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.
Access the Playlist: • Python for Beginners (...
Link to the Repl: replit.com/@co...
Join Replit the browser-based IDE used in this course - join.replit.co...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheatsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithha...
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉

Опубликовано:

 

20 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1 тыс.   
@CodeWithHarry
@CodeWithHarry Год назад
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
@MuhammadHashirAshfaq
@MuhammadHashirAshfaq 11 месяцев назад
can any one please sloved my misunderstanding for i in range(111): print("5 X", i+1,"=",(i+1)*5) if (i == 10): break print("this is 5 table") this table gone 11 for i in range(1,111): print("5 X", i,"=",i*5) if (i == 10): break print("this is 5 table") And this gone on 10 can any one please sloved my misunderstanding
@pratimakp7137
@pratimakp7137 11 месяцев назад
Sir pls pin it
@crazygamer82821
@crazygamer82821 10 месяцев назад
harry bhai apna comment pin krlo wrna gum ho jye ga
@fawzanulhaque483
@fawzanulhaque483 10 месяцев назад
​@@MuhammadHashirAshfaqAs you are using i+1 that's why when I gets to 10 it prints 10+1=11. That's why it happened. In both cases it break on 10
@user-tl7qv6td1l
@user-tl7qv6td1l 6 месяцев назад
Day 19
@vaibhavsoni4680
@vaibhavsoni4680 9 месяцев назад
for i in range(1,200): if i>=50 and i
@channeler114
@channeler114 2 месяца назад
error
@debasishbesra2901
@debasishbesra2901 Год назад
Day 4 of #100DaysOfCode. Today, in this video 19, I learned about break and continue statements in Python. The break statement allows me to terminate a loop prematurely, while the continue statement helps me skip the remaining part of the loop and move on to the next iteration. Both statements provide more control over loop execution and flow. Thank You Harry Bhaiya.
@MuhammadHashirAshfaq
@MuhammadHashirAshfaq 11 месяцев назад
can any one please sloved my misunderstanding for i in range(111): print("5 X", i+1,"=",(i+1)*5) if (i == 10): break print("this is 5 table") this table gone 11 for i in range(1,111): print("5 X", i,"=",i*5) if (i == 10): break print("this is 5 table") And this gone on 10 can any one please sloved my misunderstanding
@usd00
@usd00 10 месяцев назад
@@MuhammadHashirAshfaq In the first loop, you are confused because you are using `i+1` when printing the table of 5. So, when i == 10, the table still prints till 11 because 10 + 1 = 11. And the second one isn't printing till 11 since its not using `i + 1`. Hope it clears your misunderstanding
@shaanu_03
@shaanu_03 9 месяцев назад
@@MuhammadHashirAshfaq the above reply corrected your misunderstanding, I will solve your misunderstanding without changing your i+1 thing, you can simply put... if (i == 10): break right after the for i in range(111) it will break the loop at i ==10 without printing next iterations
@divyanshutiwari5450
@divyanshutiwari5450 Месяц назад
@@MuhammadHashirAshfaq in first code its i + 1 but in second one its just i . I hope you understand
@faheemkhan9786
@faheemkhan9786 Год назад
Best python course ever on RU-vid
@ReyanshParashar
@ReyanshParashar 5 месяцев назад
nahi bhai
@ReyanshParashar
@ReyanshParashar 5 месяцев назад
yes
@ReyanshParashar
@ReyanshParashar 5 месяцев назад
haaa \
@charcheetdh
@charcheetdh Год назад
You didnot Choose Coding, Coding Choose YOu bro. LOve from Nepal❤
@Lucifer-ff5eg
@Lucifer-ff5eg Год назад
Love from nepal 💜
@ApniGardening7
@ApniGardening7 Год назад
I not think coding choose his This is his hard work
@charcheetdh
@charcheetdh Год назад
@@ApniGardening7 Bro listen, I want told him in the context of he is supertalented in the area of coding .
@RohitRandomVideos
@RohitRandomVideos Год назад
Love from Bhairava
@San-Deve
@San-Deve 6 месяцев назад
I think you should take English class before Python. ​@@ApniGardening7
@FoxMC07
@FoxMC07 Год назад
Actually, I completed the 15 hour python cource just 3 days before Harry Bhai started #100daysofcode I am now just watching those topics which were uncovered or (updated python ) Thanks again for this cource!!! 😁
@gopalkushwah3831
@gopalkushwah3831 Год назад
It's a fake reality
@mariamhasan3733
@mariamhasan3733 Год назад
How long did it take you to complete the video?
@FoxMC07
@FoxMC07 Год назад
@@mariamhasan3733 it took me about 1 month Because I was told to watch videos only 1 hour per day... And I was making notes with that too...ik that notes were given but still I made
@shubhamkumarvishwakarma9949
@@FoxMC07 Can you please share your notes
@FoxMC07
@FoxMC07 Год назад
@@shubhamkumarvishwakarma9949 I can't but you can download Harry's notes in description.....sorry 😔
@earnonline7205
@earnonline7205 Год назад
Thanks Dear Harry! You are amazing nd content you are publishing for free is beyond expectations. I am currently doing a job, + doing BBA; 07 Semester (which is like compulsory for my current job promotion etc.,) I can not manage my home expenses with my current job. Therefore I have started learning Python, So I can earn some extra income. So far I had learned all python basic from another RU-vid channel and but I was not truly satisfied with it. So, I started to learn with you today I am on Day 19. Besides, I have good grip on Python Basic tasks. I am loving your content, & adding extra values in my Basic. " Thanks again"
@shreyasdhumal6996
@shreyasdhumal6996 2 месяца назад
motha
@spinexo
@spinexo Год назад
i=int(input("enter your dream package")) while(i
@kaserkhan1033
@kaserkhan1033 2 месяца назад
@piyushkhanna1755
@piyushkhanna1755 Год назад
LOVE SKILLS + LEARN SKILLS = EARN MONEY SKILLS = LOVE YOU HARRY SIR 😃😃😃❤️❤️❤️❤️❤️👍👍👍👍👍👍
@Mohitkdm_vlogs
@Mohitkdm_vlogs Год назад
your notes and videos are so amazing for a beginnner learing python❤❤❤❤❤❤❤❤❤
@anithathakur9892
@anithathakur9892 4 месяца назад
May I know from whr did you get his notes??
@gauravr4127
@gauravr4127 Год назад
this is my little code for table. table = int(input("Enter number of table you need: ")) countstart = 1 while countstart
@HamzaShahid-s8t
@HamzaShahid-s8t Год назад
keep it up
@siddharthguliyani4032
@siddharthguliyani4032 Год назад
Saw this playlist on day 9, & covered it in fast pace, now i always wait fr 5 pm in the evening. Thanks Harry bhai.
@steps.ofLife
@steps.ofLife Год назад
are you using replit?i want to ask that in the start of this challenge till day 11 the video tutorial was showing on replit for easy working side by side,which was very useful.But after 11th class their was no video is linked or it is not showing to me which become hectic for me to first watch it from yt then implement it in replit.So is their is any one who is facing the same problem of not getting video tutorial????
@digitaldev1717
@digitaldev1717 Год назад
@@steps.ofLife bro you can access the playlist 👍 That's you happy 🤓
@laxeveloper1473
@laxeveloper1473 Год назад
Fr means for real not for. please correct it 😶😶😶
@realsigmatude
@realsigmatude Год назад
I was not aware about this When I cam to know this series is live I binge watched the whole playlist till now in an hour
@nitish6239
@nitish6239 Год назад
Yaar matlab kuchh bhi saare videos 2x pe bhi dekhoge to bhi 100 mins se jyada lagega and you are saying ki you just watched all the videos in just 60 mins.
@rohanrajput_9
@rohanrajput_9 Год назад
@@nitish6239 I can watch this in one hour, the concepts are very simple for someone who knows 2-3 programming languages so you can skip parts of the video
@PROGRAMMER_CODER
@PROGRAMMER_CODER Год назад
Also we can write this way: for j in range(1,14): if j>10: break print("5 X",j,"=",5*j)
@nagasaiprajith2302
@nagasaiprajith2302 5 месяцев назад
Thanks
@InfinitePeace30
@InfinitePeace30 3 месяца назад
00:03 How to use 'Break Statements' and 'Continue Statements' in Python loops 01:28 Replit navigation is smooth 03:03 'Break Statements' will say 'Just exit this loop' 04:40 Break and Continue Statements in Loops 06:14 The 'Continue' statement is used to skip iterations in a loop. 07:36 Emulating 'Do While Loop' using an Infinite While Loop 09:02 The code emulates a 'Do While Loop' 10:38 Understanding 'Do While Loop' and its implementation in Python.
@YogeshKumar-kr1ke
@YogeshKumar-kr1ke Год назад
Thank you sir , you are working hard for us❤️❤️🥰
@rishiraj2548
@rishiraj2548 Год назад
Yes, thanks a billion to Harry
@mohitthakur5988
@mohitthakur5988 Год назад
bro project ideas ha kuch jitna kya ha hum ne 19 days tak ka
@manvichauhan22
@manvichauhan22 Год назад
Yes
@mohitthakur5988
@mohitthakur5988 Год назад
@@manvichauhan22 bro fer bta do na muja kuch idea nhi ha tum bta do
@SambhavJain-vk9sy
@SambhavJain-vk9sy 3 месяца назад
00:03 How to use 'Break Statements' and 'Continue Statements' in Python loops 01:28 Replit navigation is smooth 03:03 'Break Statements' will say 'Just exit this loop' 04:40 Break and Continue Statements in Loops 06:14 The 'Continue' statement is used to skip iterations in a loop. 07:36 Emulating 'Do While Loop' using an Infinite While Loop 09:02 The code emulates a 'Do While Loop' 10:38 Understanding 'Do While Loop' and its implementation in Python. Crafted by Merlin AI.
@amitranjeetjha1240
@amitranjeetjha1240 Год назад
This course is awesome 🔥🔥
@kaserkhan1033
@kaserkhan1033 2 месяца назад
@PhotoshopEditing-t9s
@PhotoshopEditing-t9s Месяц назад
simple table of 5 using for loop: for table in range(1,15): print("5 *",table, "=", 5*table) if(table==10): break
@luhem_
@luhem_ Год назад
Harry bhai add some coding exercises at the end of each video . btw amazing series!!!
@DishaanChahal
@DishaanChahal 8 месяцев назад
How is this any different from do while loop - for i in range(100): print(i) i=i+1 if (i%100==0): break
@saimaheshri
@saimaheshri Год назад
Main aapke purane video dekh raha hoon Python ke ismein aur usmein kya difference hai please tell me sir
@badalsahoo3902
@badalsahoo3902 Год назад
Yee brand new course he , some other topics are covered in new course and some new projects
@saimaheshri
@saimaheshri Год назад
@@badalsahoo3902 Ok bro thanks 🙂🙂
@Unknown-ey4wn
@Unknown-ey4wn Год назад
Hello guys I am happy to introducing new Rapper in the home. Have fun at 11:45
@inlife9120
@inlife9120 Год назад
Loved the fact that it's for free in youtube. Just need to have data package. Thanks Bhai... You're saving Education itself.
@JENNYOPJOD
@JENNYOPJOD Год назад
tho bhai data bi free karde apke liye??
@JENNYOPJOD
@JENNYOPJOD Год назад
kaise kaise log hai ..if u want to appreciate do it neatly
@inlife9120
@inlife9120 Год назад
@@JENNYOPJOD tu krdo bhai tera g*ande de ke. Hum se to itna he hosak ta he bhai...
@thisismayank1
@thisismayank1 Год назад
for table of 5 you can use this code for i in range(10): print((i+1)*5)
@WhatNameHere
@WhatNameHere Год назад
sure this will work, but this wont give the output we usually write as in notebooks i.e. 5x5=25, happy coding
@ritikchoudhary9601
@ritikchoudhary9601 Год назад
and for 10?
@rafaybaig4281
@rafaybaig4281 4 месяца назад
Correction in 2:45 for i in range(10): print("5 x",i+1,"=",5*(i+1)) output: 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 5 x 10 = 50 or second method: for i in range(1,11): print("5 x",i,"=",5*i) output: 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 5 x 10 = 50
@DailyMind96
@DailyMind96 3 месяца назад
First watch the full video
@rafaybaig4281
@rafaybaig4281 3 месяца назад
@@DailyMind96 already dekh li he bro, lekin me bohot genius ho pehle hi issues figure out kar leta ho
@gauravkumarjha8296
@gauravkumarjha8296 2 месяца назад
​@@rafaybaig4281Bhai agar jyada genius bn rha h toh ye dekh le harry ne jyada range isi liye liya h taaki break statement lagake loop ko rok ske jaise hi 5×10=50 ho genius h thik but jo baaki h unhe smjhne do yaha p harry bhai ne break statement lagana sikhaya h
@aaku2684
@aaku2684 3 месяца назад
My attempt at emulating a do while loop while(bool("True")): # contents of loop if(condition==False): break while loop will run atleast once. I cracked this idea from the last video where you showed how c++ has do while loop at the END of the contents of the loop. Thank you for this amazing exercise it feels great after cracking a problem down EDIT: after watching the solution I am glad the logic somewhat matched! (the bool("True") was unnecessary lol)
@nafisabid202
@nafisabid202 Год назад
#HarryBhaiya we need some practice problems also at the end of each video...........as you did in your 15 hours one shot video
@omprajapati4099
@omprajapati4099 8 месяцев назад
point hai bro
@tanu_matre
@tanu_matre Год назад
03.16 Break statement will say "Just exit the loop"
@tajinder715
@tajinder715 Год назад
kon kon video dekh kar confident feel krta hai???????🤘🤘🤘🤘🤘🤘
@ApniGardening7
@ApniGardening7 Год назад
Ma
@JasvirSingh-jp7rs
@JasvirSingh-jp7rs Год назад
Me also
@tajindersingh7891
@tajindersingh7891 Год назад
Yaaa
@ayushsingh492
@ayushsingh492 Год назад
Me
@ayushsingh492
@ayushsingh492 Год назад
1 unavailable video is hidden show ker raha hai 20th video kaise daikho
@alizaawan148
@alizaawan148 6 месяцев назад
# Initialize a variable i = 1 # Execute the loop at least once while True: print("5 x",i+1,"=",5*(i+1)) i = i+1 if (i == 10): break i tried to write this program in dowhileloop
@sagarm17
@sagarm17 Год назад
Sir, Thanks a lot for explaining all imp units of Python on next level. I'm requesting you, please 🙏 provide one zip file containing notes and programs. Waiting.....
@squad_infotech
@squad_infotech Год назад
see at 12:05
@sagarm17
@sagarm17 Год назад
@@devendrakalwani but can I download that
@_tryn_
@_tryn_ Год назад
Harry Sir, I'm right now in class 9th and i have extreme interest in computers and i want to work for Google or Microsoft in the future, so i am learning web dev and python since class 8. I've made a fully functional chess ai in python on my own and a portfolio website. My question is, Is this the right time to do all this?
@laxeveloper1473
@laxeveloper1473 Год назад
Yes this is right you can learn programming at this time as it will benifit your future. Getting practical knowledge is much better than theory and i also do such programming and i am also in 9th so yeah, i guess it is the right age to do so...
@atharvapatel1
@atharvapatel1 Год назад
i am in class 8th and i started it in class 7th from @codewithharry and i think its the best time to start coding because now is the time when we can understand much of the things
@laxeveloper1473
@laxeveloper1473 Год назад
@@atharvapatel1 i started from class 3rd bro... We are different. 💀
@thesiddhantsankhla
@thesiddhantsankhla Год назад
I also started in 7th grade and now I am in 9th grade It's very beneficial for us. I have till now learned java python HTML CSS and js from harry bhai
@ajayjadhav1637
@ajayjadhav1637 Год назад
Me who in final sem of engineering and learning my first language💀💀
@dabilover444
@dabilover444 Год назад
#5 table for i in range(1,11): print("5 *", i, "=", 5*(i))
@ShadowCipher
@ShadowCipher Год назад
8:12 My Implementation of Do While loop😉😜 .. #Emulating Do While Loop in Python while True: number = int(input("Enter a positive number: ")) print(number) if number ==0: print("Zero ka kya karu?!!!") elif "69" in str(number): print("Bahut Tez Ho rhE Ho!!") elif not number > 0: print("Andha Hai kya LauDe!! Positive daal") break Hope that Made you Smile:)😁🤪
@rohitpaul2750
@rohitpaul2750 Год назад
main bhi aisa hi masti karta tha...semester project ka ui design kar rha tha...ek case me " tu gand mara" likh rakkha tha...badd me change karna vul gya..aur wahi version submit kar dia...🙂🙂
@ShadowCipher
@ShadowCipher Год назад
@@rohitpaul2750 Rest In Peace bro..
@MuhammadHashirAshfaq
@MuhammadHashirAshfaq 11 месяцев назад
can any one please sloved my misunderstanding for i in range(111): print("5 X", i+1,"=",(i+1)*5) if (i == 10): break print("this is 5 table") this table gone 11 for i in range(1,111): print("5 X", i,"=",i*5) if (i == 10): break print("this is 5 table") And this gone on 10 can any one please sloved my misunderstanding
@kiranhonnali1944
@kiranhonnali1944 11 месяцев назад
@@MuhammadHashirAshfaq in the 1st code print statement you written i+1 and the nxt statement you written just i that's what make difference bro
@fawzanulhaque483
@fawzanulhaque483 10 месяцев назад
Best one 😂😂😂😂
@awaisarshad123
@awaisarshad123 Год назад
THANKS SIR G AP IS COURSE KA LIYA BOHAT MAHANAT KR RAHA HA OR WO B SIRF HAMARA LIYA AP KA BOHAT THANKS SIR R ♥♥♥
@atharvadhobale8747
@atharvadhobale8747 Год назад
@codewithharry please take patterns as deep as possible in this course. I am sure you will see my comment. Thanks in advance 🙏
@charcheetdh
@charcheetdh Год назад
Love From Nepal Harry Bhai. I want to tell You something harry bhai, I love you❣
@hindivines462
@hindivines462 Год назад
#19 Thanks for this course sir 🙏🙏
@YOUTHKAISLAM
@YOUTHKAISLAM Месяц назад
break statmant #simple table of 10 usage for loop: for table in range(1,15): print ("10*",table,"=",10*table) if(table==10) break
@ApniGardening7
@ApniGardening7 Год назад
Harry you are brilliant in coding
@engineeringlife-m8t
@engineeringlife-m8t 5 месяцев назад
break =is loop ko chod kar nikal ja continue= sirf ushi perticular iteration ko chod kar nikal jao
@Alimaz2
@Alimaz2 Год назад
break statement kahy gah : jaldi hato waha sy📢
@SSR3B
@SSR3B Месяц назад
for i in range(1, 200): print(i * 5) if i * 5 >= 50: break print('limit reached')
@gitikapinjani
@gitikapinjani Год назад
Nicely explained!
@saimaheshri
@saimaheshri Год назад
Hi
@NamanRai2431
@NamanRai2431 Год назад
Har Video ke starting me jab aap smile krte ho... goosebumps❤️❤️❤️❣️❣️ Love from Ahemdabad
@shaon1412
@shaon1412 Год назад
day #8 of asking to make a discord server
@aaryanbarthwal3496
@aaryanbarthwal3496 Месяц назад
for i in range(1,200): if i>=50 and i
@BhaiKbhai-l2q
@BhaiKbhai-l2q 7 месяцев назад
Any class 12th Cs student here😅
@Hindu_839
@Hindu_839 5 месяцев назад
Bc 12th me bhi aata hai kya esa 😅😅
@ShubhamPatel-lq4jc
@ShubhamPatel-lq4jc 4 месяца назад
Class 8
@videodiariesytchannel
@videodiariesytchannel 4 месяца назад
Cilass 5th 😎
@VenoXxd
@VenoXxd 4 месяца назад
😂🤡 cilass , glass bolde bhai ​@@videodiariesytchannel
@kshitijgupta5039
@kshitijgupta5039 3 месяца назад
Same😂
@sardarestatemarketing
@sardarestatemarketing 11 месяцев назад
for i in range(10): if (i == 8): break print ("10 X ",i+1,"=",10*(i+1)) print ("loop ko chor kr nekal jao") #break terminate entire loop
@adityagoswami8144
@adityagoswami8144 Год назад
Did anyone notice the topic of day 20 and 21 at 8:10
@Rakshit_Bhat
@Rakshit_Bhat Год назад
thank you bro
@theanonymous92
@theanonymous92 Год назад
nice observation
@zuberzuvi7185
@zuberzuvi7185 Год назад
total = 0 a = int(input("enter number : ")) for i in range(10): if i == 10: break x = a * (i + 1) print(a,"×", i + 1, "=", x) total += x print("Sum of multiples:", total)
@kracksilentgaming2830
@kracksilentgaming2830 Год назад
Aap is video ko 1x me hi dkh rhe h 😂😂
@AbdulkhaliqKz
@AbdulkhaliqKz Месяц назад
for i in range(10): print("5 X",i+1,"=",5*(i+1)) if(i==5): print("skip") break print(" ") print(" ") print(" ") for i in range(10): if(i==7): print("skip") continue print("5 X",i+1,"=",5*(i+1)) 🎉🎉🎉🎉🎉🎉
@unknownerror-t5u
@unknownerror-t5u Год назад
3:07 Right code = user_input = int(input("Enter a number for Table :")) print (f"This is the Multiplication table of {user_input}.") for k in range (1,13): print (f"{user_input} X {k} = {user_input * k}") if k == 10: break print ("Now loop is breaked.")
@coding-sp
@coding-sp Год назад
Thx
@chaitanya-n2y
@chaitanya-n2y 4 месяца назад
My practice problem for Break and Continue Statement #practice problem on break statement for i in range(1,10+1): if (i == 10): print("It is a century") break print("10 X", i,"=", 10*i) print("Successfully excecuted") #practice problem on continue statement for i in range(20+1): if (i == 10): print("It is a century") continue print("10 X", i,"=", 10*i) print("Successfully excecuted")
@rishirajvlogs3131
@rishirajvlogs3131 4 месяца назад
for i in range(11): print("5 X", i+1, "=", 5 * (i + 1)) if(i == 10): break print("Loop ko chodkar nikal gaya")
@cagohel4181
@cagohel4181 Год назад
break ststement says: "iss loop ko chhodkr nikl jao."....this line touches many of our hearts; harry se sikhe koi"ganit sathe gammat" ye hamari gujarati kahavat hai...
@adityanair1112
@adityanair1112 9 месяцев назад
i dont know how i can thankyou i AM LEARNING PYTHON FOR LAST 5 MONTHS FROM MY TEACHER AND what i underwstood is take input and print but since i started to follow to classes my level of understanding python is just fire
@abdullahbinshahzad
@abdullahbinshahzad Год назад
How I write this code according to my understanding: #Write the math table number=int(input("Table of: ")) for i in range(1,12+1): print(number,"X", i, "=",number*i) if(i==10): break
@devkarankvaghasiya194
@devkarankvaghasiya194 Год назад
Day - 19 Complete
@MuhammadIhsan-gu6ks
@MuhammadIhsan-gu6ks Год назад
the code of table of 5 is : for i in range(1, 21): print('5 X', i, '=', 5 * i)
@softwaretechnical2411
@softwaretechnical2411 Год назад
Sir aapka explanation mujhe easy me samjh me aa jata hai so tnk u sir for giving knowledge
@anithak2647
@anithak2647 10 месяцев назад
Break statement ----->Just exit the loop Continue statement -----> Just exit the Iteration
@HotmarkComputech.18
@HotmarkComputech.18 Год назад
Paid Courses ki Wattt laga di Harry vai...😄 Love You Harry vai,🥰 Bcz of only you, I am called the best programmer in my Clg...
@IshanBahuguna1
@IshanBahuguna1 Год назад
the updation statement in do while loop emulation should be at the end becoz if i =100 then then loop will run till 200 since updation statement is in betwwen
@Mohitsharmaskp
@Mohitsharmaskp Год назад
#DAYS_19 OUT OF THE 100_DAYS #codewithharry #python #harrybhai #100dayscodewithpython
@sohailnawaz1811
@sohailnawaz1811 Год назад
Break : loop ko chor kr nikal jao. Continue: Iteration ko chor kr nikal jao. Do while loop: while True code if(statement): break
@usmankhawaja8711
@usmankhawaja8711 Год назад
Ye esay b likha ja skta tha tou apne i+1 q likhaa? # bread and continue for i in range (12): print("5 x ", i, "=", (5 * i)) if i==10: break
@ATTIQ_OFFICIAL
@ATTIQ_OFFICIAL Год назад
sir a few days ago i made a table counter that takes the number whose table to count and limit till where it should count using the knowledge i got in your videos
@CoderInRain
@CoderInRain Год назад
I also did that same program before seeing your comment
@noobdestroyer6964
@noobdestroyer6964 Год назад
And I will see you next time. I love this sentence when harry bhai says it.
@pulkitpareek
@pulkitpareek Год назад
Bhai MISSISSIPPI dekh kar Permutations & Combinatons ki yaad aa gyi Toh loh phir factorial nikalne ka jugaad num = int(input("Enter a number till you want the Factorial Series: ")) if (num < 0): print("Please Enter a Positive Number.") n=1 for i in range(num+2): for j in range(1,i+1): n*=j if(j==1): print("Factorial",i-1,"=",n) n=1
@Smartandshopperhub
@Smartandshopperhub 6 месяцев назад
thank you very much sir.........
@debangadutta8246
@debangadutta8246 4 месяца назад
Doubt: in the do-while emulation, if we enter 100, it is supposed to print 100 once and exit but it does not. Interchanging last 2 lines makes it work like a do-while loop, i.e. prints 100 once and exits the loop. Is this right?
@SL-zg9on
@SL-zg9on Год назад
We can use two conditions with or in while loop to make it run atleast once
@funclub7662
@funclub7662 7 месяцев назад
At 10:03 , apne kaha ki while loop True ho ya False ho ye loop chlegi hi chlegi, but agar while ko false kar dia zaye to wo loop hi nhi chlegi for ander break condition lga ho ya na lga ho koi fark nhi parta, correct me if I'm wrong.
@OPS..Ajeet..kr..
@OPS..Ajeet..kr.. 9 месяцев назад
for i in range(12): print ("5 X",i, "=",5 * i")
@unicgamer5249
@unicgamer5249 Месяц назад
I have a question in code if I write this: for k in range(20): if k == 10: break print("5 X", k+1, "=", 5*(k+1)) the answer is normal but if I write this: for k in range(20): print("5 X", k+1, "=", 5*(k+1)) if k == 10: break the results do not match this showing the table till 5*11=55 please help me
@devwitharsalan
@devwitharsalan Год назад
we can just put the starting point in range function to start it from 1 for i in range(1, 12): print( ' 5 X ' , i , ' = ' , 5 * i) if( i == 10): break
@ritikchoudhary9601
@ritikchoudhary9601 Год назад
i = int(input("Which number table do you want to make: ")) for k in range(0,10): print (i,"X", k+1 ,"=", i*(k+1)) k = "Your Program is Done" print(k.center(25)) Run this code in your server
@noobgamerankit9033
@noobgamerankit9033 Год назад
I also made one see 👇 i = 0 while True : print(i) i = i + 1 if i==(40): break
@AmitSharma-oh5uw
@AmitSharma-oh5uw 10 месяцев назад
is loop ko chodkr nikal jao in break statement. and in continue is iteration ko chodkar nikal jao
@tanvirgsm
@tanvirgsm 4 дня назад
Day 19 done, thanks
@AMARJEETKUMAR-ce9sc
@AMARJEETKUMAR-ce9sc Год назад
Khuda ka bheja Hua Nayab Hira..Well done Harry Bhai...God Bless you for all the good work you are doing..Kudus...
@dhananjayvaish3276
@dhananjayvaish3276 Год назад
Harry bhaiya mast playlists bnate h
@asamadawais
@asamadawais Год назад
@CodeWithHarry you are class in your class!!!👏👏👏
@user-df6bl8md6t
@user-df6bl8md6t Год назад
for i in range(12): print("5X",i,"=",5*i) if(i==10): print("skip the iteration") why is this giving the following output? 5X 0 = 0 5X 1 = 5 5X 2 = 10 5X 3 = 15 5X 4 = 20 5X 5 = 25 5X 6 = 30 5X 7 = 35 5X 8 = 40 5X 9 = 45 5X 10 = 50 skip the iteration 5X 11 = 55
@Cpiumbirb69-cd8su
@Cpiumbirb69-cd8su 6 дней назад
Because range is from 0 to n-1 where n is 12 here
@azamkhanayub1304
@azamkhanayub1304 Год назад
Sir 1 video app development with python par bhi bana de . Mere jese Bigners k lye 1 boost hoga jo wo ap se seekh rahay he . Or bohot se doubts bhi clear ho jaenge. Thanks for your videos 👍
@gymlovers7362
@gymlovers7362 Год назад
Bro plz make video on chatGPT according to your perceptive.
@AJAYMAN2529
@AJAYMAN2529 Год назад
Harry your my inspiration ☺️ love you bro
@juloorisanthosh7637
@juloorisanthosh7637 Год назад
sir when we are using the same code for (if == 10) we are getting only 5x10=50 but in your output it is whole table . please check and how it is coming like that
@OmkarBhor_
@OmkarBhor_ Год назад
no if u will write if(i==10) it will come till 5x9 =45 only
@borrisjonshon5321
@borrisjonshon5321 Год назад
for i in range(12): if(i==10): break print("5x",i+1,"=",5*(i+1)) when I run this it shows no output.
@user-ShashankTiwari123
@user-ShashankTiwari123 5 месяцев назад
Thanku code with harry for provideing free python course
@aadityabasak
@aadityabasak Год назад
#HarryBhai, this is another example of do while emulation in python, just have a look and if you are watching this, please tell me if is it okay or not and give me love, it will make my day😅 code:- while True: a = int(input("Enter positive number: ")) print(a) if (a < 0): break print("you entered a positive number, that's why you are seeing this line") tell me where should i improve
@aprajita_99
@aprajita_99 Год назад
i think you should shift the last statement before break kyunki agar break pehle huwa to loop ke bahar aa jayegaa and tumhara print statement print nhi hoga
@mrmahaveer7743
@mrmahaveer7743 Год назад
Love from Pakistan sir.... Big fan💜💖💖
@owaisnadeem2751
@owaisnadeem2751 11 месяцев назад
Day 19 Present Sir . Love and respect from Pakistan
@biswajeet9826
@biswajeet9826 2 месяца назад
Never say no to hardwork!! Jai Hind! Jai Jagannath!!
@ankursingh8585
@ankursingh8585 3 месяца назад
if we initially declare the value of i =1 then we written the statement for i in range(12): print(i) the output ?
@everyoneiloveisfictional
@everyoneiloveisfictional 2 месяца назад
100 marks for the breathless monologue in the end.
@whitemask-Community
@whitemask-Community Год назад
" break " function says to (for) loop : " Jaldi waha se hato 📢 "
Далее
Functions in Python | Python Tutorial - Day #20
16:18
Просмотров 709 тыс.
Complete CyberSecurity Roadmap 2024 (Beginner's Guide)
15:04
While Loops in Python | Python Tutorial - Day #18
14:10
Which Operating System I use and Why 💻
14:57
Просмотров 143 тыс.
Please Master These 10 Python Functions…
22:17
Просмотров 158 тыс.
5 Good Python Habits
17:35
Просмотров 533 тыс.
Functions in Python are easy 📞
10:38
Просмотров 480 тыс.