learningpython/magic_8_v2.py

18 lines
352 B
Python
Raw Normal View History

2021-02-08 11:29:13 -06:00
#! /usr/bin/env python3
import random
def getAwnser():
messages = ('It is certain',
'It is decidedly so',
'Yes',
'Reply hazy, try again',
'Ask again later',
'My reply is no',
'Outlook not so good',
'Very doubtful' )
return messages[random.randint(0, len(messages)-1)]
for i in range(0,10):
print(getAwnser())