Skip to content

Commit 5248f85

Browse files
committed
⚡ Updates!
Signed-off-by: Harmouch101 <eng.mahmoudharmouch@gmail.com>
1 parent 2d42f3a commit 5248f85

File tree

72 files changed

+179837
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+179837
-53
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 2-Clause License
22

3-
Copyright (c) 2020, Harmouch101
3+
Copyright (c) 2022, Harmouch101
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 116 additions & 40 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1+
<!-- BSD 2-Clause License
2+
3+
Copyright (c) 2022, Harmouch101
4+
All rights reserved.
5+
-->
6+
7+
18
# Chapter_01: Introduction.
29

3-
Document's Author: Mahmoud Harmouch
10+
Copyright (c) 2022 Mahmoud Harmouch
411

512
---
613

714
**Reset your brain**.
815

9-
Don't try to memorize everything because you don't have to, just remember that something exists to know what you are looking for.
16+
> Don't try to memorize everything because you don't have to, just remember that something exists to know what you are looking for.
1017
11-
Theory without Practice is useless; Practice without Theory is blind.
18+
> Theory without Practice is useless; Practice without Theory is blind.
1219
13-
Practice/coding is the key to success as a programmer.
20+
> Practice/coding is the key to success as a programmer.
1421
15-
Don't give up. Difficult roads **often** lead to beautiful destinations.
22+
> Don't give up. Difficult roads **often** lead to beautiful destinations.
1623
1724
---
1825

@@ -392,7 +399,7 @@ In python, objects are destroyed automatically(not explicitly) from memory by th
392399
2
393400
```
394401

395-
![namespace and memory](./Images/namespace_memory.png)
402+
![namespace and memory](../assets/namespace_memory.png)
396403

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

@@ -1596,7 +1603,7 @@ rest of program
15961603

15971604
```
15981605

1599-
![if statement](./Images/if.png)
1606+
![if statement](../assets/if.png)
16001607

16011608
```python
16021609
a = 2
@@ -1610,7 +1617,7 @@ if a % 2 == 0:
16101617

16111618
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.
16121619

1613-
![if statement](./Images/if_else.png)
1620+
![if statement](../assets/if_else.png)
16141621

16151622
```python
16161623
a = 2
@@ -1624,7 +1631,7 @@ else:
16241631

16251632
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 ...).
16261633

1627-
![if statement](./Images/if_elif.png)
1634+
![if statement](../assets/if_elif.png)
16281635

16291636
```python
16301637
a = 75
@@ -1643,7 +1650,7 @@ else:
16431650

16441651
Here we check another condition if certain condition is met.
16451652

1646-
![if statement](./Images/nested_if_else.png)
1653+
![if statement](../assets/nested_if_else.png)
16471654

16481655
```python
16491656
a = 12
@@ -1878,7 +1885,7 @@ In Python, operations have different priorities. The following table lists arith
18781885

18791886
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...).
18801887

1881-
![iterators](./Images/iterators.png)
1888+
![iterators](../assets/iterators.png)
18821889

18831890
```python
18841891
for element in range(5): # list ==> elements

Chapter_02: Built-In func & Std Modules.md renamed to notes/chapter_02: Built-In func & Std Modules.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
<!-- BSD 2-Clause License
2+
3+
Copyright (c) 2022, Harmouch101
4+
All rights reserved.
5+
-->
6+
7+
18
# Chapter_02: Built-in functions & Standard Modules.
29

3-
Document's Author: Mahmoud Harmouch
10+
Copyright (c) 2022 Mahmoud Harmouch
411

512
---
613

0 commit comments

Comments
 (0)