I am trying to loop around a try and except for my menu options, part of the code is below, I am just wondering how I can infinitely loop this to avoid program crashing ... I tried a while true loop but I failed!
error here : https://i.stack.imgur.com/Euk1L.jpg
while True:
    try:
       choice = int(input("What would you like to do?\n1)Code a word\n2)Decode a word\n3)Print the coded words list\n4)Quit the program\n5)Clear Coded Words List\n>>>"))#Asking for choice from user
    except ValueError:
        print("Invalid entry! Try again")
        choice =int(input("What would you like to do?\n1)Code a word\n2)Decode a word\n3)Print the coded words list\n4)Quit the program\n5)Clear Coded Words List\n>>>"))#Asking for choice from user
        continue
    else:
        break
 
     
     
    