0

Python Assignment operator

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

5th Jul 2023, 6:07 PM
Suraj
Suraj - avatar
1 Réponse
+ 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