Skip to content

Instantly share code, notes, and snippets.

@miloheller
miloheller / Magic 8 Ball
Created February 26, 2015 19:53
This is for the program Pythonista. It is a magic eight ball that I made myself.
import time
import random
import console
def get_answers(filename) :
'''read and parse the answer file'''
ret = []
filehandle = open(filename,'r')
for line in filehandle.readlines() :
if line.strip().startswith('#') :