i tried to create a python program.i defined a function inside an if statement,but the result will be only till the if statement.the function inside it wont get executed.
if(ch2=="A")|(ch2=="a"):
Name=raw_input("Enter your name:")
Username=raw_input("ENter your username")
Password=raw_input("ENter your password")
Confirm=raw_input("Confirm your password")
DOB=raw_input("DD: MM: YY: ")
Gender=raw_input("I am....")
Mobile=input("Enter your mobile number")
Location=raw_input("Enter your current location")
print"Prove you are not a robot,Type the text shown below"
text="F7HGhfyu"
print"Wa$t3oF#!m3"
text="Wa$t3oF#!m3"
type=input("Type your text")
if(Confirm==Password)&(type==text):
print"You have successfully created an account"
print"You can now proceed!!"
else:
def proceed():
def details():
print"Welcome",Username
its getting executed only up to type variable.should we import any packages??or is there any errors?. Your help is appreciated.thanks in advance!
Aucun commentaire:
Enregistrer un commentaire