Advertisement
here2share

# random_element.py

Jan 6th, 2015
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # random_element.py
  2.  
  3. import random
  4. myStr = 'a string variable'
  5. print random.choice([1,2,3,4,5,6,7,8,9,'qwerty','hello world',12,'python','simplicity', myStr])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement