+ 1
Porque el random no funciona con el list?
2 odpowiedzi
+ 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.
+ 2
Hatsy Rei Thank you!