I have a problem with this piece of code.
Somehow if we put in 'register'
or 'Register'
as input, it goes to the register function, but after it prints the else: Aswell ("Bad input")
; I have made more of these but cant find the fault in this one.
Please help me. Thanks! Here's my code:
def Boot():
print "Type 'Login' + accountname to login."
x = raw_input("> ")
Name = x.split()
if x == "Register" or x == "register":
print "Registerbla"
if Name[0] == "Login" or Name[0] == "login":
print "Loginblabla"
else:
print "Bad input"
So what I see after input is: Registerbla Bad input