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