Python - Standard Library Usage
Why does this code raise an error?
import random print(random.choice(123))
import random print(random.choice(123))
random.choice() needs a sequence like list or string.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions