codeGK
Code it ALL
Assignment Operators in Python - CodeGK

♦ Assignment Operators in Python

♣ Example2: Assignment Operators in Python

Assignment Operations in Python are used for assignment of (values)/(variable values) to variables.
Table Info
,,,,,,,,,,,,,,,
Operator@Working
=@Data Assignment
+=@Addition Increment
-=@Subtraction Decrement
*=@Multiplication Increment
/=@Division Decrement
%=@Modulo Assignment
//=@Flooring Assignment
**=@Exponentiation Assignment
&=@AND Assignment
|=@OR Assignment
^=@XOR Assignment
~=@NOT Assignment
>>=@Zero fill left shift Assignment
<<=@Signed right shift Assignment
Example
Input:
Output: