We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e81b61 commit d6cfe16Copy full SHA for d6cfe16
content/micropython/01.basics/08.reference/reference.md
@@ -1922,20 +1922,14 @@ print(result) # Output: 12 (20 - 8)
1922
1923
**Compound division `/=`:**
1924
1925
-```python
1926
-
1927
-```
1928
1929
-**Compound bitwise xor `^=`:**
1930
1931
```python
1932
value = 30
1933
1934
value /= 6
1935
print(value) # Output: 5.0 (30 / 6)
1936
```
1937
1938
-**Compound bitwise or `|=`:**
+**Compound bitwise xor `^=`:**
1939
1940
1941
m = 12
@@ -1944,3 +1938,13 @@ n = 7
1944
m ^= n
1945
print(m) # Output: 11 (12 ^ 7)
1946
+
1942
+**Compound bitwise or `|=`:**
1943
+```python
+p = 10
+q = 5
1947
1948
+p |= q
1949
+print(p) # Output: 15 (10 | 5)
1950
+```
0 commit comments