I am REALLY new to this and have been trying to figure this out for a day now. Having a bit of an issue with Python34. Here is my code:
myName = input('What is your name? ')
myVar = input("Enter your age please! ")
if(myName == "Jerome" and myVar == 22):
print("Welcome back Pilot!")
print(myName, myVar)
elif(myName == "Steven"):
print("Steve is cool!")
print(myName, myVar)
else:
print("Hello there", myName)
print(myName, myVar)
When I input- Jerome enter 22 enter into the console it still goes to the condition by printing:
Hello there Jerome
Jerome 22
Why is this happening? I also tried messing with the if statement by writing it like this: if(myName == "Jerome") and (myVar == 22):
and I still got the same response.