Looping Question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

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???

19th Apr 2017, 1:19 AM
John Ashurst (Maffas)
John Ashurst (Maffas) - avatar
1 Answer
+ 1
They hit run again
19th Apr 2017, 5:12 AM
DRAGONGAMING
DRAGONGAMING  - avatar