Jan-05-2019, 02:22 PM
answer = int(input("Would you like to play again? (enter 1 for yes or 2 for no): "))Note that it will raise an exception if input is not valid for conversion to int with base 10.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs