Created
September 14, 2021 13:56
-
-
Save AntonMyr/cbd9b9055a015c0b7b8acc747d62bc6a to your computer and use it in GitHub Desktop.
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
# File: step_2.py | |
markdown_fp = open("step_2.md", "r") | |
| |
# Needed for later | |
idea_list = [] | |
idea_counter = 0 | |
| |
inside_tag = False | |
for line in markdown_fp: | |
start_tag = "<i" in line | |
end_tag = "i>" in line | |
outside_tag = not inside_tag | |
| |
if start_tag and outside_tag: | |
# Start tag | |
if end_tag and inside_tag: | |
# End tag | |
pass | |
if inside_tag: | |
# Extract | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment