Question
PYTHON 3.5 How can i make my code repeat the rounds? Would i use a while loop? Help me write/fix my program to show this
PYTHON 3.5 How can i make my code repeat the rounds? Would i use a while loop? Help me write/fix my program to show this output. PLEASE USE PROPER INDENTION
# A Python program for the Rock, Paper, Scissors game. import random
def main(): print('ROCK PAPER SCISSORS in Python') print() print('Rules: 1) Rock wins over Scissors.') print(' 2) Scissors wins over Paper.') print(' 3) Paper wins over Rock.') def rock_paper_scissors(): guess = 'r','p','s' computer_score = 0 person_score = 0 rounds = 1 total_rounds= int(input("How many points does it take to win? "))
while(computer_score
main() rock_paper_scissors()
| |ROCK PAPER SCISSORS in Python 3 Rules: 1) Rock wins over Scissors. 2) Scissors wins over Paper. 3) Paper wins over Rock 7 How many points does it take to win? 2 9 ********************* ROUND #1 ********************* 10 1234567Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started