You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapter_01: The Language Basics.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -391,7 +391,7 @@ In python, objects are destroyed automatically(not explicitly) from memory by th
391
391
2
392
392
```
393
393
394
-

394
+

395
395
396
396
## 3.3.1 Names. <aname="3.3.1"></a><h5>[Go To TOC](#TOC).</h5>
397
397
@@ -1595,7 +1595,7 @@ rest of program
1595
1595
1596
1596
```
1597
1597
1598
-

1598
+

1599
1599
1600
1600
```python
1601
1601
a=2
@@ -1609,7 +1609,7 @@ if a % 2 == 0:
1609
1609
1610
1610
Figuratively, we can divide this statement into two parts. The first part is an if statement with a condition and a body, and the second is an else statement with a body only.
1611
1611
1612
-

1612
+

1613
1613
1614
1614
```python
1615
1615
a=2
@@ -1623,7 +1623,7 @@ else:
1623
1623
1624
1624
In this case, we only get into the body of the statement that the interpreter meets first, andas you may know, the interpreter scans the code from top to bottom(like switch-case in C# or C or ...).
1625
1625
1626
-

1626
+

1627
1627
1628
1628
```python
1629
1629
a=75
@@ -1642,7 +1642,7 @@ else:
1642
1642
1643
1643
Here we check another condition if certain condition is met.
1644
1644
1645
-

1645
+

1646
1646
1647
1647
```python
1648
1648
a=12
@@ -1877,7 +1877,7 @@ In Python, operations have different priorities. The following table lists arith
1877
1877
1878
1878
Each time an objectis used in a for loop, the interpreter generates an iterator with which it works. An iterator is an object that contains a **next()** method which is called at each iteration to returns the sequence, element by element. When there are no more elements, the iterator raises an exception of type**StopIteration**. There are a lot of objects that are iterable(e.g. elements of a list, characters of a string, keys of dict...).
0 commit comments