Python Forum
Not understand the difference and there uses
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not understand the difference and there uses
#2
== and != are operators of equality.
not is a logical operator that revers the value of a logical variable.

For understanding a difference just try to change "==" to "is_equal" and "!=" to "is_not_equal" functions.

def is_equal(a, b):
    return a == b

def not_is_equal(a, b):
    return a != b
Reply


Messages In This Thread
RE: Not understand the difference and there uses - by fishhook - Aug-01-2019, 11:10 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020