New course! Every coder should learn Generative AI!
Try a free lesson- 1
List
list = ["1", "2", "3", "4"] a = how to make the value of (a) a random object from (list)
1 Answer
+ 6
Import random
a=random.choice(list)
list = ["1", "2", "3", "4"] a = how to make the value of (a) a random object from (list)