lundi 15 février 2021

Whenever i use random.choice in Python, i get an error. The error is in the 'body' page

playsound.playsound(random.choice(beatboxes))

AttributeError: 'builtin_function_or_method' object has no attribute 'choice'

Process finished with exit code 1

there is an alternative to the bultin random module?

Thanks




Aucun commentaire:

Enregistrer un commentaire