Python Assignment operator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python Assignment operator

What is the means of (&=, |=, ^=, >>=, <<) in the python Assignment operator.

5th Jul 2023, 6:07 PM
Suraj
Suraj - avatar
1 Answer
+ 3
x &= 1 is equal to x = x & 1. Search for the keyword "bitwise operations" to find out about the symbols.
5th Jul 2023, 7:34 PM
Lisa
Lisa - avatar