Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

assigning values in python

Operator:  Example:  Equivalent:
  =         a = b     a = b
  +=        a += b    a = (a + b)
  -=        a -= b    a = (a - b)
  *=        a *= b    a = (a * b)
  /=        a /= b    a = (a / b)
  %=        a %= b    a = (a % b)
  //=       a //= b   a = (a // b)
  **=       a **= b   a = (a ** b)
 
PREVIOUS NEXT
Tagged: #assigning #values #python
ADD COMMENT
Topic
Name
6+4 =