Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Jul 10, 2021
1 parent 8a72b58 commit 6e96bc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions 04_Day_Strings/04_strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 05_Day_Lists/day_5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |
Expand Down

0 comments on commit 6e96bc3

Please sign in to comment.