restart='y'
while restart=='y':
import random
import time
#Make some answers
ans1="I dont know, go ask your mom!"
ans2="The answer to that question is hidden between two massive hills behind you!"
ans3="YOUR A HUGE PHYICO PATH"
ans4="Honsetly i dont know, But i can say that what you think is probably wrong"
ans5="Orange, or yes, whatever you question was, i wasent really listening"
ans6="Seriously, you should find a friend"
ans7="Thats a strange question"
ans8="Yes, definatley yes"
#Introduce the dude
print ("Meet Crash\nC.razy\nR.andom\nA.swering\nS.elf\nH.unches")
question = input("Ask Crash a Question for him to answer it\n")
#Randomize number
number=random.randint(1,3)
print ("Looking through hidden files.."*1)
time.sleep(number)
number1=random.randint(1,3)
print ("Looking through hidden files.."*1)
time.sleep(number1)
number2=random.randint(1,3)
print ("Looking through hidden files.."*1)
time.sleep(number2)
number3=random.randint(1,3)
print ("Looking through hidden files..\n"*1)
time.sleep(number3)
#create a dice
choice=random.randint(1,8)
if choice == 1:
answer=ans1
elif choice == 2:
answer=ans2
elif choice == 3:
answer=ans3
elif choice == 4:
answer=ans4
elif choice == 5:
answer=ans5
elif choice == 6:
answer=ans6
elif choice == 7:
answer=ans7
else:
answer=ans8
#Restart
print(answer)
input("\n\nPress Enter to finish")
restart = input("would you like to ask another? (y/n)")
No comments:
Post a Comment