What function allows us to get a random item from a list?
randint()
choice()
range()
random()
11 answers
choice()
What data structure did we use to represent the three valid choices in today's project?
dict
list
variable
str
dict
list
variable
str
list
What keyword is used to create a function in Python?
if
def
fun
str
if
def
fun
str
def
What keyword is used to exit a loop?
end
continue
exit
break
end
continue
exit
break
break
The ___ loop is useful for indefinite looping.
forever
def
while
for
forever
def
while
for
while
The ___ loop is used to loop over a list
for
while
forever
def
for
while
forever
def
for