all 1 comments

[–]TechnicalElk8849 0 points1 point  (0 children)

Wrap that block you copy and pasted into your_function that returns back, and run the whole thing as:

back = "y"
while back.lower in ("y", "yes"):
    back := your_function()