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

preview_player
Показать описание
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.

python, C, C++, Java, JavaScript and Other Cheatsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

for i in range(1, 200):
if i>=50 and i<=60:
continue
if i==100:
break
print(i)

vaibhavsoni
Автор

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.

debasishbesra
Автор

You didnot Choose Coding, Coding Choose YOu bro. LOve from Nepal❤

charcheetdh
Автор

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 YouTube 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"

earnonline
Автор

kon kon video dekh kar confident feel krta

tajinder
Автор

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!!! 😁

FoxMC
Автор

Also we can write this way:
for j in range(1, 14):
if j>10:
break
print("5 X", j, "=", 5*j)

PROGRAMMER_CODER
Автор

LOVE SKILLS + LEARN SKILLS = EARN MONEY SKILLS = LOVE YOU HARRY SIR 😃😃😃❤️❤️❤️❤️❤️👍👍👍👍👍👍

piyushkhanna
Автор

i=int(input("enter your dream package"))


i=int(input("sai btaa sai me"))

print(i)
else:
print("waaa betaa ")
print("ookad se bahr ja riaa he")
😅😅😅😅 just for funnnn

spinexo
Автор

your notes and videos are so amazing for a beginnner learing python❤❤❤❤❤❤❤❤❤

Mohitkdm_vlogs
Автор

Saw this playlist on day 9, & covered it in fast pace, now i always wait fr 5 pm in the evening. Thanks Harry bhai.

siddharthguliyani
Автор

for i in range(1, 200):
if i>=50 and i<=60:
continue
if i==100:
break #is loop ko chor kar nikal jaoo
print(i)

aaryanbarthwal
Автор

Thank you sir, you are working hard for us❤️❤️🥰

YogeshKumar-krke
Автор

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

realsigmatude
Автор

this is my little code for table.

table = int(input("Enter number of table you need: "))
countstart = 1

while countstart <= 10:
print(f"{table} x {countstart} = {table * countstart}")
countstart = countstart + 1

print("done!")

gauravr
Автор

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 ♥♥♥

awaisarshad
Автор

Harry bhai add some coding exercises at the end of each video . btw amazing series!!!

luhem_
Автор

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:)😁🤪

ShadowCipher
Автор

How is this any different from do while loop - 
for i in range(100):
print(i)
i=i+1
if (i%100==0):
break

rqemvxr
Автор

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)

zuberzuvi