restart='y'
while restart=='y':
import random
import time
#Make some answers
answers = (
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
"Question",
)
#Introduce the dude
print ("Meet Siri)
question = input("Ask Siri a Question for her to answer it\n")
#Randomize number
number=random.randint(1,3)
print ("Loading..."*1)
time.sleep(number)
number1=random.randint(1,3)
print ("Loading.."*1)
time.sleep(number1)
number2=random.randint(1,3)
print ("Loading,"*1)
time.sleep(number2)
number3=random.randint(1,3)
print ("Loading...\n"*1)
time.sleep(number3)
#create a dice
choice=random.randint(0,10)
#Restart
print(answers[choice])
input("\n\nPress Enter to finish")
restart = input("would you like to ask another? (y/n)")
No comments:
Post a Comment