Skip to content

Commit d6cfe16

Browse files
committed
Update reference.md
1 parent 6e81b61 commit d6cfe16

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

content/micropython/01.basics/08.reference/reference.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,20 +1922,14 @@ print(result) # Output: 12 (20 - 8)
19221922

19231923
**Compound division `/=`:**
19241924

1925-
```python
1926-
1927-
```
1928-
1929-
**Compound bitwise xor `^=`:**
1930-
19311925
```python
19321926
value = 30
19331927

19341928
value /= 6
19351929
print(value) # Output: 5.0 (30 / 6)
19361930
```
19371931

1938-
**Compound bitwise or `|=`:**
1932+
**Compound bitwise xor `^=`:**
19391933

19401934
```python
19411935
m = 12
@@ -1944,3 +1938,13 @@ n = 7
19441938
m ^= n
19451939
print(m) # Output: 11 (12 ^ 7)
19461940
```
1941+
1942+
**Compound bitwise or `|=`:**
1943+
1944+
```python
1945+
p = 10
1946+
q = 5
1947+
1948+
p |= q
1949+
print(p) # Output: 15 (10 | 5)
1950+
```

0 commit comments

Comments
 (0)