Python break continue pass ⛔

Your video will begin in 10
67 Views
Published
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
Category
Bro Code
Tags
python, break, continue
Be the first to comment