WorksheetsPython: Rock, Scissors, Paper
Total questions: 10
Worksheet time: 5mins
Python uses indentation to block code into chunks
True
False
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
Used in conditional statements, same as else if
elif
while
when
elf
When we create a list in Python: t = ["Rock", "Paper", "Scissors"] , what value does "Rock" hold in the list?
1
2
3
0
Why did we need to set player to False
"player = False"
in our Rock, Scissors, Paper game? ....think!!!
we hate people
in order to set the conditions of the game
people aren't real
not this one!
In our Python code for Rock, Scissors, Paper, what line of code was needed for the loop to continue (reset the game)?
from random import randint
player = False
computer = t[randint(0,2)]
t = ["Rock", "Paper", "Scissors"]
player = True
computer = t[randint(0,2)]
restart = game
