Page 1 of 1

Magic Yoda (In the style of a Magic 8 Ball)

Posted: Sat Sep 27, 2014 2:50 pm
by rasphack
Check out this program I made:

Code: Select all

import random
looping=10
while looping is 10:
	fortunes=['Use the force you must, whatever may happen.','Yes. Hmmm.','Probably it will happen.','Certainly my friend.','Promising is the outcome my friend!','Sure about that I am not.','Again you must ask me.','Doubtful I am about this.','No my friend.']
	how_many_fortunes=len(fortunes)
	raw_input('                                                                        Think of a question my friend. Let the force guide you. Press enter    you must to find the outcome you will!                                ')
	which_fortune=random.randint(0,how_many_fortunes-1)
	print str("                                                                        ") + fortunes[which_fortune]
There's some background to where I'm getting this project from (it's based on another program) in my first post.