# for - continue
words = ["Alpha", "Bravo", "Charlie", "Delta", "END", "Foxtrot"]
for word in words:
if word == "END":
continue
print(word)
"""
Alpha
Bravo
Charlie
Delta
Foxtrot
"""
# for - break
words = ["Alpha", "Bravo", "Charlie", "Delta", "END", "Foxtrot"]
words2 = ["Alpha", "Bravo", "Charlie", "Delta", "Echo", "Foxtrot"]
for word in words:
if word == "END":
print("*BREAK!")
break
print(word)
else:
print("*END*")
"""
Alpha
Bravo
Charlie
Delta
*BREAK!
"""
for word in words2:
if word == "END":
print("*BREAK!")
break
print(word)
else:
print("*END*")
"""
Alpha
Bravo
Charlie
Delta
Echo
Foxtrot
*END*
"""
# while - break
pw = "1234"
while True:
enter_pw = input("PW: ")
if enter_pw == pw:
print("--OK--")
break
else:
print("==ERROR==")