Nov-05-2019, 01:29 PM
The
On the left side is the name, where you want to assign the object on the right side.
The left operand is known as Variable, but in Python this name is misleading.
=
operator is the named assignment.On the left side is the name, where you want to assign the object on the right side.
The left operand is known as Variable, but in Python this name is misleading.
a = 42 # the name a points now to the memory address of the integer object with the value 42 a = 43 # the name a points now to the memory address of the integer object with the value 43 b = a # a == b b = 13 # b == 13 and a == 43The
==
is the operator just for equality check.if True == False: print('Impossible')The opposite of equal, is
not equal
.if True != False: print('This is True')
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!