Congratulations on successfully sharing your first project! It looks great for a first!
Your style and markdowns are way better than my first project, but here are some suggestions along with some tools to make your formatting and markdowns even better:
When using markdowns as headers, use incremented numbers of # for hierarchy. Here’s a link to a quick markdown cheatsheet.
I benefited a lot from the comment below by @vasheyy that introduced me to quite a few awesome jupyter notebook extensions.
For me, the style of a notebook is something that requires practice, discipline and viewing others’ projects. You are off to a good start already.
Your code looks good, only a few notes:
non_ascii = 0
for character in string:
if ord(character) > 127: #According to ASCII, all English xters are between 0-127#
non_ascii += 1
if non_ascii > 3:
In the code above, you can simply return non_ascii < 4 and get rid of the if/else statement.
Also, all the code to loop through a dictionary in your project uses for key in dictionary:, and then access the values with dictionary[key] in the loop. I just want to make sure you know you can also use for key, value in dictionary.items(): to loop through the key-value pair.
I skipped the Python step when I started the Data Scientist path, so I’m actually going back and doing this project right now. Don’t know if you’ve started learning Pandas and all, but gee libraries like Pandas made life so much easier. Great job on your first project!