Skip to content

Commit 01fe439

Browse files
minor grammatical & formatting (nnja#8)
1 parent 5ecb6dd commit 01fe439

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • website/content/02-introduction-to-python/080-advanced-datatypes

website/content/02-introduction-to-python/080-advanced-datatypes/30-tuples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ weight: 30
77

88
Tuples are light-weight collections used to keep track of related, but different items. Tuples are **immutable**, meaning that once a tuple has been created, the items in it can't change.
99

10-
You might ask, why tuples when Python already has lists? Tuples are different in a few ways. While lists are generally used to store collections of similar items together, tuples, by contrast, can be used considered to contain a snapshot of data. They can't be continually changed, added or removed from like you could with a list.
10+
You might ask, why tuples when Python already has lists? Tuples are different in a few ways. While lists are generally used to store collections of similar items together, tuples, by contrast, can be used to contain a snapshot of data. They can't be continually changed, added or removed from like you could with a list.
1111

1212
### `tuple` cheat sheet
1313

@@ -70,7 +70,7 @@ Let's say we have a spreadsheet of students, and we'd like to represent each row
7070

7171
#### Access by index
7272

73-
We can access items in the `tuple` by index, but we **can't change them.
73+
We can access items in the `tuple` by index, but we **can't change them**.
7474

7575
```python
7676
>>> student = ("Marcy", 8, "History", 3.5)
@@ -121,4 +121,4 @@ You can return tuples from functions, and use unpacking.
121121
200
122122
>>> value
123123
'OK'
124-
```
124+
```

0 commit comments

Comments
 (0)