a, b = 4, 2
c = a + b
print(c)
# => 6
a, b = 4, 2
c = a - b
print(c)
# => 2
a, b = 4, 2
c = a * b
print(c)
# => 8
a, b = 4, 2
c = a / b
print(c)
# => 2.0
a, b = 4, 2
c = a // b
print(c)
# => 2
a, b = 4, 2
c = a ** b # a to the power of b (4^2)
print(c)
# => 16
a, b = 4, 2
c = a % b
print(c)
# => 0
a, b = 4, 2
c = -a
print(c)
# => -4
a, b = 4, 2
a = 1
b = 1
print('a == b', a == b)
# => a == b True
a = 1
b = 2
print( 'a != b', a != b )
# => a != b True
a = 1
b = c = 2
print('a is b', a is b)
# => a is b False
print('b is c', b is c)
# => b is c True
This operation is same as
id(a) == id(b)
(https://docs.python.org/3/library/functions.html#id)
a = 1
b = 1
print( 'a is not b', a is not b ) # a is b
# => a is not b False
x++
andx--
++x
and--x
()
=> +x
=> -x
=> **
=> *
=> /
=> %
=> +
=> -