[Solved] How to loop back to the beginning of the code on Python 3.7


username = ['admin','bill','Kevin','mike','nick']
while True :

    name =input("Please enter a username: ")
    if name=='admin' :
        print("Hello "+ name + " ,would you like to see a status report?")
        break
    elif name in username :
        print("Hello " + name.title() + " thank you for logging in!")
        break
    else:
        print("Who are you " + name.title() + " ? ")

1

solved How to loop back to the beginning of the code on Python 3.7