Kyle Davidson

  • Content Count

  • Joined

  • Last visited

  1. I am new to python, the code im doing just now is my first attempt and im following a tutorial video course. I have an issue where == & != are doing the opposite print("Hello World") myName = input('What is your name?') myVar = input('How old are you?') print(myName) if(myName == "Kyle" and myVar == 25): print("Hello Kyle") else: print("Hello World") when i enter Kyle & 25 it will print "Hello World" whereas if i type a different number it will print "Hello Kyle" If i change the code to != it does the opposite but my understanding both are reversed for some strange reason? Any advice would be greatly appreciated. I can go on using it this way but from the tutorial it seems my code is doing the opposite of what im telling it to do