Search the Community

Showing results for tags 'equality comparison'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • General
    • Show Us Your Creations
    • Blog
    • Recommended Reading
  • One Stop Programming Tutorials
    • Python Beginner Series
  • Programming Languages
    • Python
    • C++
    • C#
    • Arduino
    • Other Languages

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  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