Python program that can answer any “Yes” or “No” question with a different fortune each time it executes.
The following 9 possible answers are used for our Magic 8-Ball:
Yes - definitely. It is decidedly so. Without a doubt. Reply hazy, try again. Ask again later. Better not tell you now. My sources say no. Outlook not so good. Very doubtful.