Python Assignment operator | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Python Assignment operator

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

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