In: Computer Science
Python 2.7
In Rock Paper Scissors game, try below task (and also using below statements as much as you can):
- %s in print statements
- \n or \t in print statements
- run 100 times of RPS game simulation between two computers and print results for # of ties.
- in your program, allow user to decide how many game to play.
- allow program to suggest user to retype RPS if there's any typos
SOURCE CODE:-
print ("Did you bring back your signed permission
slip(yes/no)?")
n=raw_input("")
if n=="yes":
print ("Which number amendment allowed women to
vote in the US?")
n2=input("")
if(n2==19):
print ("You will get to
go to the history museum!")
else:
print ("You will get to
go to the art museum!")
else:
print ("Sorry, you aren't allowed to go on the
field trip.")
CODE SCREENSHOT:-
OUTPUT-1:-
OUTPUT-2:-
OUTPUT-3:-