Python break continue pass ⛔

preview_player
Показать описание
Python break continue pass tutorial example explained

#python #break #continue #pass

# Loop Control Statements = change a loops execution from its normal sequence

# break = used to terminate the loop entirely
# continue = skips to the next iteration of the loop.
# pass = does nothing, acts as a placeholder

while True:
name = input("Enter your name: ")
if name != "":
break

phone_number = "123-456-7890"
for i in phone_number:
if i == "-":
continue
print(i, end="")

for i in range(1,21):
if i == 13:
pass
else:
print(i)

Bro Code merch store 👟 :
===========================================================
===========================================================

music credits 🎼 :
===========================================================
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
===========================================================
Рекомендации по теме
Комментарии
Автор

# Loop Control Statements = change a loops execution from its normal sequence

# break = used to terminate the loop entirely
# continue = skips to the next iteration of the loop.
# pass = does nothing, acts as a placeholder

while True:
name = input("Enter your name: ")
if name != "":
break

phone_number = "123-456-7890"

for i in phone_number:
if i == "-":
continue
print(i, end="")

for i in range(1, 21):
if i == 13:
pass
else:
print(i)

BroCodez
Автор

I was confused on what my course was trying to explain to me about "continue" in Python... came here and learn it in 10 sec. Thank you!

supersql
Автор

These tutorials are really filling the gaps in my pre-existing python knowledge, keep up the excellent work

elliotradley
Автор

Good job man. You genuinely deserve more views and subscribers

wangwenli
Автор

Going through your Python course - so good. Thank you!!!! It is much appreciated for a newbie like me!

Pesto-
Автор

Thx for the short, straight to the point, informative video bro!

crontsquared
Автор

Well explained with good usage of examples👍

robertbetke
Автор

Great easy to follow tutorials! 👍🏻👍🏻👍🏻

varunwind
Автор

Pass is a God send for me as now I don't have to scratch my head to think where to use the statement (return None) lol. Thanks man hope you have a good day

pogboy
Автор

Excellent skill and awesome video... Best luck for 100k subscirber ...from India...

vishaljare
Автор

i didnt know the "continue" statement, thank you very much, im sure that its very useful!

lorenzoheine
Автор

Undoubtedly the best beginner-medium friendly course for learning python ! Kudos to you for your efforts. I might be a bit greedy if you ask me but it would be a great help if it's possible to get all the notes of yours in one place . . probably on a notepad file !!

nafizurrahman
Автор

I am from india i really enjoy this channel and i dont get board while watching learning python you really make coding easy and fun bro

himeshchauhan
Автор

this you tuber is the best teacher'

bjdqkqg
Автор

We really appreciate ur hard work to help us
May I know if I could you use pass instead of using continue? If yes
What is the of continue? coz both of them act same
Many Thanks

salahhousaini
Автор

Phone number remembered Bro, expect a call tomorrow.

lw
Автор

in the last example in 3.30, if i write if i == 13: continue, then it will ignore 13 too
so ??? what the deference between both of them ?

iskandertrabelsi