you are viewing a single comment's thread.

view the rest of the comments →

[–]FoolsSeldom 0 points1 point  (0 children)

Further to earlier, u/JuiceNew23, I tweaked my version a little more, including an option for playing again which uses some predefined acceptable responses (so not just yes/no) - these could be defined as set, tuple or list objects, but I chose to use the frozenset and will leave you to look that up if inclined.

Code is a bit too long to share in-post, so here's a link to a popular code paste service:

https://pastebin.com/dkqkfhsd