Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP ME!!
#7
The = 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 == 43
The == 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!
Reply


Messages In This Thread
HELP ME!! - by Luke_0162 - Nov-04-2019, 11:53 AM
RE: HELP ME!! - by buran - Nov-04-2019, 12:00 PM
RE: HELP ME!! - by Luke_0162 - Nov-04-2019, 12:08 PM
RE: HELP ME!! - by DeaD_EyE - Nov-04-2019, 04:33 PM
RE: HELP ME!! - by Luke_0162 - Nov-04-2019, 07:42 PM
RE: HELP ME!! - by jefsummers - Nov-05-2019, 03:19 AM
RE: HELP ME!! - by DeaD_EyE - Nov-05-2019, 01:29 PM
RE: HELP ME!! - by Luke_0162 - Nov-05-2019, 03:53 PM
RE: HELP ME!! - by jefsummers - Nov-05-2019, 03:57 PM
RE: HELP ME!! - by Luke_0162 - Nov-05-2019, 04:37 PM
RE: HELP ME!! - by Luke_0162 - Nov-05-2019, 09:06 PM

Forum Jump:

User Panel Messages

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