my_condition = False
if my_condition:
# do something
pass
print("end of example")
finished = False
while not finished:
passw = input('?')
if len(passw) < 4:
print('too short')
# more conditions
# ...
else:
print('excellent')
finished = True
while True:
passw = input('?')
if len(passw) < 4:
print('too short')
# more conditions
# ...
else:
print('excellent')
break