From cc60437e5ff65189f7436673902510a57b3edf3e Mon Sep 17 00:00:00 2001 From: Karan Dixit <97967796+dixitk941@users.noreply.github.com> Date: Sun, 25 Feb 2024 01:08:01 +0530 Subject: [PATCH] Update 30_lists.md spelling of because is wrong before my edit= brcause after my edit = because --- website/content/02_data_types/30_lists.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/content/02_data_types/30_lists.md b/website/content/02_data_types/30_lists.md index 45a9dc7..92d5a4b 100644 --- a/website/content/02_data_types/30_lists.md +++ b/website/content/02_data_types/30_lists.md @@ -14,7 +14,7 @@ Lists are one of the most powerful data types in Python. They're used to store r | use | Used for storing similar items, and in cases where items need to be added or removed. | | creation | `[]` or `list()` for empty list, or `[1, 2, 3]` for a list with items. | | search methods | `my_list.index(item)` or `item in my_list` | -| search speed | Searching for an item in a large list is slow brcause each item must be checked. | +| search speed | Searching for an item in a large list is slow because each item must be checked. | | common methods | `len(my_list)`, `append(item)` to add, `insert(index, item)` to insert at `index`, `pop()` to remove. | | order preserved? | Yes. Items can be accessed by index. | | mutable? | Yes | @@ -394,4 +394,4 @@ IndexError: pop index out of range | **index** of item | `my_list.index(item)` | `int` | `ValueError` if `item` is not in `my_list` | | **count** of item | `my_list.count(item)` | `int` | | | **remove** an item | `my_list.remove(item)` | - | `ValueError` if `item` not in `my_list` | -| **remove** the last item, or an item at an index | `my_list.pop()` or `my_list.pop(pos)` | `item` | `IndexError` if `pos` >= `len(my_list)` | \ No newline at end of file +| **remove** the last item, or an item at an index | `my_list.pop()` or `my_list.pop(pos)` | `item` | `IndexError` if `pos` >= `len(my_list)` |