# siri
import random
#write answer
ans1="Why are you asking me this question"
ans2="I will have to kill you to tell you"
ans3="I do not want to scar your innocent mind"
ans4="Go for it"
ans5="That is not a valid question"
ans6="Your questions are irriating my simple brain"
ans7="Very funny"
ans8="You are to young to know that"
print("Hello Human")
#get the users questions
question= input("Ask me for advice and then press ENTER to shake me./n")
print("shaking...\n"*4)
#use the randint() function to select the correct answer
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
#print the answer to the screen
print(answer)
input("\n\nPress the ENTER key to finish.")
import random
#write answer
ans1="Why are you asking me this question"
ans2="I will have to kill you to tell you"
ans3="I do not want to scar your innocent mind"
ans4="Go for it"
ans5="That is not a valid question"
ans6="Your questions are irriating my simple brain"
ans7="Very funny"
ans8="You are to young to know that"
print("Hello Human")
#get the users questions
question= input("Ask me for advice and then press ENTER to shake me./n")
print("shaking...\n"*4)
#use the randint() function to select the correct answer
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
#print the answer to the screen
print(answer)
input("\n\nPress the ENTER key to finish.")
No comments:
Post a Comment