Colab

my_condition = False
if my_condition:
    # do something
    pass
    
print("end of example")

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


      File "<ipython-input-4-d52d0e26abd7>", line 6
        else:
             ^
    SyntaxError: unexpected EOF while parsing



while True:
    passw = input('?')
    if len(passw) < 4:
        print('too short')
    # more conditions
    # ...
    else:
        print('excellent')
        break