- 1

List

list = ["1", "2", "3", "4"] a = how to make the value of (a) a random object from (list)

7th May 2020, 11:26 AM
_nrkvv_
_nrkvv_ - avatar
2 Respostas
+ 6
Import random a=random.choice(list)
7th May 2020, 11:31 AM
Abhay
Abhay - avatar