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
list
What keyword is used to create a function in Python?
if

def

fun

str
def
What keyword is used to exit a loop?
end

continue

exit

break
break
The ___ loop is useful for indefinite looping.
forever

def

while

for
while
The ___ loop is used to loop over a list
for

while

forever

def
for
Similar Questions
    1. answers icon 1 answer
  1. 14.Which of the following statements is FALSE? Random words can be generated as well as random numbers. The random module is a
    1. answers icon 1 answer
  2. This line of code is an example of what?choice = [item for item in clothes if item.startswith('g')] (1 point) Responses
    1. answers icon 1 answer
  3. Which of the following statements is FALSE?(1 point) Responses Random words can be generated as well as random numbers. Random
    1. answers icon 1 answer
more similar questions