The correct answer is: chooses a value at random from a string.
In Python, the choice
function is part of the random
module and is used to select a random element from a non-empty sequence (such as a list, tuple, or string).
(1 point)
• lets the user make a choice
• lets the programmer make a choice
• creates a new program
• chooses a value at random from a string
1 answer
The correct answer is: chooses a value at random from a string.
In Python, the choice
function is part of the random
module and is used to select a random element from a non-empty sequence (such as a list, tuple, or string).