New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Undefined
It says "random udefined" random.choice(list)
3 Answers
+ 7
Write "import random" at the beginning of the code.
+ 6
Did you import random?
+ 3
Try importing the random class first.