From 6e96bc3e1f2b55667d6fd07758af12b6595545f5 Mon Sep 17 00:00:00 2001 From: Asabeneh Date: Sat, 10 Jul 2021 05:57:07 +0300 Subject: [PATCH] minor fixes --- 04_Day_Strings/04_strings.md | 4 ++-- 05_Day_Lists/day_5.py | 2 +- readme.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/04_Day_Strings/04_strings.md b/04_Day_Strings/04_strings.md index 1d5ea5e1..4377d5eb 100644 --- a/04_Day_Strings/04_strings.md +++ b/04_Day_Strings/04_strings.md @@ -328,8 +328,8 @@ print(challenge.expandtabs(10)) # 'thirty days of python' ```py challenge = 'thirty days of python' -print(challenge.find('y')) # 5 -print(challenge.find('th')) # 0 +print(challenge.find('y')) # 16 +print(challenge.find('th')) # 17 ``` - rfind(): Returns the index of the last occurrence of a substring, if not found returns -1 diff --git a/05_Day_Lists/day_5.py b/05_Day_Lists/day_5.py index 7ffec5e5..9e7e1546 100644 --- a/05_Day_Lists/day_5.py +++ b/05_Day_Lists/day_5.py @@ -31,7 +31,7 @@ last_index = len(fruits) - 1 last_fruit = fruits[last_index] -# Accessing itmes +# Accessing items fruits = ['banana', 'orange', 'mango', 'lemon'] last_fruit = fruits[-1] second_last = fruits[-2] diff --git a/readme.md b/readme.md index 224574aa..76a8f85b 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ | 10 | [Loops](./10_Day_Loops/10_loops.md)| | 11 | [Functions](./11_Day_Functions/11_functions.md)| | 12 | [Modules](./12_Day_Modules/12_modules.md)| -| 13 | [List Comprehension](../13_Day_List_comprehension/13_list_comprehension.md)| +| 13 | [List Comprehension](./13_Day_List_comprehension/13_list_comprehension.md)| | 14 | [Higher Order Functions](./14_Day_Higher_order_functions/14_higher_order_functions.md)| | 15 | [Python Type Errors](./15_Day_Python_type_errors/15_python_type_errors.md)| | 16 | [Python Date time](./16_Day_Python_date_time/16_python_datetime.md) |