Python Else Clause - chrisbitm/python GitHub Wiki

It is best practice to add an Else Clause at the end of an IF Statement, despite it may never be executed. It prevents logical errors in code, ease to understand explicit meaning behind a block of code. It also reduces errors and bugs when debugging later.

choice = None

while choice != "0":
    choice = input("State your Choice:  ")
    if choice == "1":
        print(1)
    if choice == "2":
        print(2)
    if choice == "3":
        print(3)
    if choice == "0":
        print("Exiting Loop")