Stay With us
3 new comments

beginner
new

Help & Settings
About
Help
Tips

How to select a random item from a list in python

I have a list in python containing the name of different user. I want to get a random user from the list so that i can get a random number.

Here is my list.

users = ['John', 'Mia', 'Zhuoer', 'Kelly']

I want to get a random name from the list every time i wish.

(1) Replies

Please login or register to Comment or Answer