Mar-05-2020, 07:40 AM
(This post was last modified: Mar-05-2020, 07:43 AM by Gribouillis.)
The purpose of loops is to repeat tasks
while True: ... # <-- code to be executed more than once reply = input("Do you want to play again? ") if reply.strip().lower() not in ('y', 'yes'): break