Skip to content

Commit 4ea53cb

Browse files
committed
Edits
1 parent 81d411c commit 4ea53cb

File tree

7 files changed

+35
-22
lines changed

7 files changed

+35
-22
lines changed

Notes/01_Introduction/01_Python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# 1.1 Python
22

3-
In this part, we'll start with the absolute basics.
3+
In this part, we'll start with the absolute basics of Python.
44

5-
## Notes
5+
## Reading
66

77
### What is Python?
88

Notes/01_Introduction/02_Hello_world.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# 1.2 A First Python Program
22

3-
## Notes
3+
This section discusses the creation of your first program, running the interpreter,
4+
and some basic debugging.
5+
6+
## Reading
47

58
### Running Python
69

Notes/01_Introduction/03_Numbers.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# 1.3 Numbers and Booleans
1+
# 1.3 Numbers
22

3-
## Notes
3+
This section covers some basics of performing mathematical calculations in Python.
4+
5+
## Reading
46

57
### Types of Numbers
68

Notes/01_Introduction/04_Strings.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# 1.4 Strings
22

3-
## Notes
3+
This section covers the basics of text manipulation.
4+
5+
## Reading
46

57
### Representing Text
68

Notes/01_Introduction/05_Lists.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
# 1.5 Lists
22

3-
## Notes
3+
This section introduces lists, one of Python's basic objects for storing collections of data.
44

5-
### String Splitting
5+
## Reading
66

7-
Strings can represent fields of data. We can work with each field by splitting the string into a list.
7+
### Creating a List
8+
9+
Use square brackets to create a list:
10+
11+
```python
12+
names = [ 'Elwood', 'Jake', 'Curtis' ]
13+
nums = [ 39, 38, 42, 65, 111]
14+
```
15+
16+
Sometimes lists are created by other methods. For example, a string can be split into a
17+
list using the `split()` method:
818

919
```pycon
1020
>>> line = 'GOOG,100,490.10'
@@ -14,18 +24,9 @@ Strings can represent fields of data. We can work with each field by splitting t
1424
>>>
1525
```
1626

17-
A common use case for this splitting is when reading data from a file. You might read each line as text and then split the text into columns.
18-
1927
### List operations
2028

21-
Use square brackets to create a list:
22-
23-
```python
24-
names = [ 'Elwood', 'Jake', 'Curtis' ]
25-
nums = [ 39, 38, 42, 65, 111]
26-
```
27-
28-
It can hold items of any type. Add a new item using `append()`:
29+
Lists can hold items of any type. Add a new item using `append()`:
2930

3031
```python
3132
names.append('Murphy') # Adds at end
@@ -84,7 +85,7 @@ s = [1, 2, 3]
8485
s * 3 # [1, 2, 3, 1, 2, 3, 1, 2, 3]
8586
```
8687

87-
### List Iteration & Search
88+
### List Iteration and Search
8889

8990
Iterating over the list contents.
9091

Notes/01_Introduction/06_Files.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# 1.6 File Management
22

3-
## Notes
3+
This section discusses the basics of working with files.
4+
5+
## Reading
46

57
### File Input and Output
68

Notes/01_Introduction/07_Functions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# 1.7 Introduction to Functions
22

3-
## Notes
3+
As your programs start to get larger, you'll want to get organized. This section
4+
introduces functions. Error handling with exceptions is also introduced.
5+
6+
## Reading
47

58
### Custom Functions
69

0 commit comments

Comments
 (0)