I am new to python, so if this takes some insane experience, try to dumb it down :P
So I was making an unfair rock paper scissors game and wanted to restart the game based on user input
Output >> Wanna play again? Y/N
Input >> Y
(and then it restarts)
and if I say N, the terminal closes. How do I make that a reality?
If you can, try to include my code in there because I might somehow screw it up
Here's the code:
choice = input("Rock, Paper, or Scissors? ") if choice == "Rock" or choice == "rock": print("I choose Paper! \nI win!") if choice == "Paper": print("I choose Scissors! \nI win!") if choice == "Scissors": print("I choose Rock! \nI win!") if choice == "rock": print("I choose Paper! \nI win!") if choice == "paper": print("I choose Scissors! \nI win!") if choice == "scissors": print("I choose Rock! \nI win!")