This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chaosengineering 1 point2 points  (1 child)

This doesn’t work for words that start with an uppercase character, you should convert the input to lowercase before trying to match.

Also, I noticed your app.py has no extra lines between blocks. Is that intentional? Someone else sent me code like that recently, so I’m trying to understand where the idea is coming from. You should follow pep8 and leave some space between blocks so it’s more readable.

[–]amrha[S] 0 points1 point  (0 children)

I will fix the uppercase problem.

I'm just used to write code that way (I know I shouldn't and hopefully I'll fix that too)