Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 INDENTIONimage text in transcribedimage text in transcribed

# 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 1234567

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions