Advertisement
Guest User

python code

a guest
Dec 12th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. present_list = ["red toy car", "blue toy car", "green toy car", "purple toy car", "aqua toy car", "pink toy speed boat", "red toy speed boat", "blue toy speed boat", "iphone xs red", "iphone xs grey", "iphone xs blue", "£10,000"] #list of random presents
  2. secure_random = random.SystemRandom()
  3. present = secure_random.choice(present_list) #sets present as a random choice
  4. print ("the elves have found a present for you....", present) #randomly chooses a present from present_list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement