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 🎼 :
===========================================================
Up In My Jam (All Of A Sudden) by - Kubbi [ Ссылка ]
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
Free Download / Stream: [ Ссылка ]
Music promoted by Audio Library [ Ссылка ]
===========================================================
Ещё видео!