Advertisement
asweigart

magic 8 ball with choice()

Jun 16th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import random
  2.  
  3. messages = ['It is certain',
  4.     'It is decidedly so',
  5.     'Yes definitely',
  6.     'Reply hazy try again',
  7.     'Ask again later',
  8.     'Concentrate and ask again',
  9.     'My reply is no',
  10.     'Outlook not so good',
  11.     'Very doubtful']
  12.  
  13. print(random.choice(messages))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement