I have a block of code with
import random as r
value = r.choice(r.randint(10, 30), r.randint(50, 100))
print (value)
Why does it give me the following error, and how should I fix it?
TypeError: choice() takes 2 positional arguments but 3 were given
Aucun commentaire:
Enregistrer un commentaire