Sail E0 Webinar
Question
What is the output of the function shown below (random module has already been imported)?random.choice('sun')
Options:
A .  sun
B .  u
C .  either s, u or n
D .  error
Answer: Option C


The above function works with alphabets just as it does with numbers. The output of thes expression will be either s, u or n.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers