What is the result of the below function (the random module has already been imported)? random.choice(‘sun’)
A. Sun
B. u
C. s, u, or n are all possible answers
D. a mistake
Answer:C
What is the result of the below function (the random module has already been imported)? random.choice(‘sun’)
A. Sun B. u C. s, u, or n are all possible answers D. a mistake
Explanation: As with numbers, the above function works with alphabets as well. S, u, or n will be the output of these expressions.