Vote count:
0
Hi I was making a script y'now, just for fun and I came across a small problem. The way my code needs to work, I need to recall a script but to do that it needs to be recalled in a recall of another script. :P I know kinda confusing but it makes a little more sense in the script. Here's my code:
import time
import datetime.def ans():
print("Are you sure your name is Vegas?")
time.sleep(2)
print("Well I'm not so sure.")
time.sleep(1)
print("You'll have to prove it.")
time.sleep(1)
print("Which typewriter brand does Vegas have?")
print("1. Sizzix")
print("2. Royal")
print("3. Alivetti")
print("4. Smith-Corona")
ans=input(">")
if ans == "4":
print("Correct....")
else:
print("Incorrect! You are not Vegas! Liar!")
name()
def name():
name=0
print("Detecting...")
time.sleep(2)
name == input("Is your name Vegas? (Y or N) >")
if name == "Y":
ans()
if name == "N":
name()now = datetime.datetime.now()
print(now, " --That is the time.")
name()
All the big font is just stuff I used as notes (#). I was making this script for my friend whose name is Vegas so that explains that. Thanks all help is appreciated! :)
asked 1 min ago
Python 3.2.0 using def
Aucun commentaire:
Enregistrer un commentaire