Skip to content

Commit 2cd2d51

Browse files
committed
update
Signed-off-by: Harmouch101 <mahmoudddharmouchhh@gmail.com>
1 parent bfcccc2 commit 2cd2d51

File tree

10 files changed

+1165
-44
lines changed

10 files changed

+1165
-44
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: ruby
2+
rvm: 2.2
3+
before_script: gem install awesome_bot
4+
script: awesome_bot README.md --allow-redirect --allow-dupe --allow-ssl
5+
notifications:
6+
email: false

Chapter_01: The Language Basics.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ In python, objects are destroyed automatically(not explicitly) from memory by th
391391
2
392392
```
393393

394-
![namespace and memory](./resources/namespace_memory.png)
394+
![namespace and memory](./Images/namespace_memory.png)
395395

396396
## 3.3.1 Names. <a name="3.3.1"></a><h5>[Go To TOC](#TOC).</h5>
397397

@@ -1595,7 +1595,7 @@ rest of program
15951595

15961596
```
15971597

1598-
![if statement](./resources/if.png)
1598+
![if statement](./Images/if.png)
15991599

16001600
```python
16011601
a = 2
@@ -1609,7 +1609,7 @@ if a % 2 == 0:
16091609

16101610
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.
16111611

1612-
![if statement](./resources/if_else.png)
1612+
![if statement](./Images/if_else.png)
16131613

16141614
```python
16151615
a = 2
@@ -1623,7 +1623,7 @@ else:
16231623

16241624
In this case, we only get into the body of the statement that the interpreter meets first, and as you may know, the interpreter scans the code from top to bottom(like switch-case in C# or C or ...).
16251625

1626-
![if statement](./resources/if_elif.png)
1626+
![if statement](./Images/if_elif.png)
16271627

16281628
```python
16291629
a = 75
@@ -1642,7 +1642,7 @@ else:
16421642

16431643
Here we check another condition if certain condition is met.
16441644

1645-
![if statement](./resources/nested_if_else.png)
1645+
![if statement](./Images/nested_if_else.png)
16461646

16471647
```python
16481648
a = 12
@@ -1877,7 +1877,7 @@ In Python, operations have different priorities. The following table lists arith
18771877

18781878
Each time an object is 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...).
18791879

1880-
![iterators](./resources/iterators.png)
1880+
![iterators](./Images/iterators.png)
18811881

18821882
```python
18831883
for element in range(5): # list ==> elements

0 commit comments

Comments
 (0)