+ 1
31st Jan 2019, 4:18 AM
Perro
Perro - avatar
2 Réponses
+ 2
You might want to use random.choice() to select a random element from the list? print(random.choice(list)) The random.randint() function takes two integer parameters and return a random number between the range represented by the two parameters. It won't work if you pass a list to the function.
31st Jan 2019, 5:08 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
Hatsy Rei Thank you!
31st Jan 2019, 5:12 AM
Perro
Perro - avatar