N
neutrinman
Hi,there. How can I choose a key in dictionary randomly?
Say, random.choice() in lists,
or in lists:
lists = [1,2,3,4]
position = random.range(len(lists))
word = lists[position]
Say, random.choice() in lists,
or in lists:
lists = [1,2,3,4]
position = random.range(len(lists))
word = lists[position]