Question: i would help with this i keep getting 8 / 1 0 here is my code below: import random ROCK = 0 PAPER = 1
i would help with this i keep getting here is my code below:
import random
ROCK
PAPER
SCISSORS
# Read random seed to support testing do not alter and starting credits
seed intinput
# Set the seed for random
random.seedintseed
# Type your code here.
player input
player input
rounds
count
wincount
wincount
while True:
rounds intinput
if rounds :
break
else:
printRounds must be
printplayer vs player for strrounds rounds"
while count rounds:
p random.randint
p random.randint
if p p:
printTie
elif p ROCK:
if p SCISSORS:
printplayer wins with rock"
wincount wincount
else:
printplayer wins with paper"
wincount wincount
count count
elif p PAPER:
if p ROCK:
printplayer wins with paper"
wincount wincount
else:
printplayer wins with scissors"
wincount wincount
count count
elif p SCISSORS:
if p PAPER:
printplayer wins with scissors"
wincount wincount
else:
printplayer "wins with rock"
wincount wincount
count count
printplayer wins strwincount and player wins strwincount
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
