A missing function in a real module

Predict the output · Basic · §12.6 [Pair coding with AI] Asking for library suggestions

You asked an AI for code that picks one of the people who left a comment. You checked the official documentation and found that the random module has no function called pick. Predict the output.

Code

import random

names = ["mina", "jun", "sora"]
print(f"{len(names)} participants")
winner = random.pick(names)
print("Winner:", winner)

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.