Looping Question | Sololearn: Learn to code for FREE!


Looping Question

how do i keep letting the user try again.?? https://code.sololearn.com/cwj32LVQBuyA/#py def usr_input(): while True: try: return str(input("Input some fantastic Craic Right Here:")) except ValueError: print("Invalid input. Come on. Try Again!") n = usr_input() print("*****Hooray!!!*****") print("Here Are Your") print("Words of Wisdom") print("To Yourself") print((n)) print((n)) print((n)) print("Try Again if the") print("Craic Is Shite:") print("********") #how do we let the user try again???

4/19/2017 1:19:20 AM

John Ashurst (Maffas)

1 Answer

New Answer


They hit run again