forked from Asabeneh/30-Days-Of-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ | |
- [Zip](#zip) | ||
- [Exercises: Day 17](#exercises-day-17) | ||
|
||
|
||
# 📘 Day 17 | ||
|
||
## Exception Handling | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,29 +14,29 @@ | |
</div> | ||
</div> | ||
|
||
[<< Day 17](../17_Day/17_exception_handling.md) | [Day 19>>](../19_Day/19_file_handling.md) | ||
[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md) | ||
|
||
![30DaysOfPython](../images/[email protected]) | ||
|
||
- [📘 Day 18](#%f0%9f%93%98-day-18) | ||
- [Regular Expressions](#regular-expression) | ||
- [The *re* Module](#The-re-module) | ||
- [📘 Day 18](#-day-18) | ||
- [Regular Expressions](#regular-expressions) | ||
- [The *re* Module](#the-re-module) | ||
- [Functions in *re* Module](#functions-in-re-module) | ||
- [Match](#match) | ||
- [Search](#search) | ||
- [Searching for All Matches Using *findall*](#searching-for-all-matches-using-findall) | ||
- [Replacing a Substring](#replacing-a-Substring) | ||
- [Replacing a Substring](#replacing-a-substring) | ||
- [Splitting Text Using RegEx Split](#splitting-text-using-regex-split) | ||
- [Writing RegEx Patterns](#writing-regex-patterns) | ||
- [Square Brackets](#square-brackets) | ||
- [Square Bracket](#square-bracket) | ||
- [Escape character(\\) in RegEx](#escape-character-in-regex) | ||
- [One or more times(+)](#one-or-more-times) | ||
- [Period(.)](#period) | ||
- [Zero or more times(\*)](#zero-or-more-times) | ||
- [Zero or one times(?)](#zero-or-one-times) | ||
- [Quantifiers in RegEx](#quantifiers-in-regex) | ||
- [Cart ^](#cart) | ||
- [💻 Exercises: Day 18](#%f0%9f%92%bb-exercises-day-18) | ||
- [Zero or one time(?)](#zero-or-one-time) | ||
- [Quantifier in RegEx](#quantifier-in-regex) | ||
- [Cart ^](#cart-) | ||
- [💻 Exercises: Day 18](#-exercises-day-18) | ||
|
||
|
||
# 📘 Day 18 | ||
|
@@ -375,7 +375,6 @@ matches = re.findall(regex_pattern, txt) | |
print(matches) # ['6,', '2019.'] | ||
``` | ||
|
||
|
||
## 💻 Exercises: Day 18 | ||
|
||
1. What is the most frequent word in the following paragraph? | ||
|
@@ -434,8 +433,6 @@ distance = 12 | |
print(most_frequent_words(cleaned_text)) # [(3, 'I'), (2, 'teaching'), (2, 'teacher')] | ||
``` | ||
|
||
|
||
|
||
🎉 CONGRATULATIONS ! 🎉 | ||
|
||
[<< Day 17](../17_Day/17_exception_handling.md) | [Day 19>>](../19_Day/19_file_handling.md) | ||
[<< Day 17](../17_Day_Exception_handling/17_exception_handling.md) | [Day 19>>](../19_Day_File_handling/19_file_handling.md) |
File renamed without changes.