print("Hello World")
myName = input("Whats your name?")
myVar = input("Enter a number: ")
print(myName)
print(myVar)
if(myName == "Ben" and myVar == 5):
print("You are cool")
elif(myName == "Max"):
print("You are not cool")
else:
print("Nice to meet you")
Sorry I know I'm probably just looking at this wrong but I can't seem to figure it out. I am very new to Python and was watching a YouTube tutorial and it helped me create the above program.
I would expect that by me entering "Ben" for input 1 and then "5" for the second input, it would return by printing "you are cool".
However every time I attempt it, it returns the "Nice to meet you" which I thought is not meant to be returned without the previous parts of the if statement returning false.
I appreciate any help, I just want to have a thorough understanding of this before moving forward.