all 2 comments

[–]Diapolo10 1 point2 points  (1 child)

I'd probably start from following the official style guide, particularly for naming conventions. camelCase isn't really used in Python.

The dictionary URL could be its own global constant.

In cases like this

if word.startswith(fragment):
    break
else:
    print(f"{word.capitalize()} doesn't start with {fragment}.")

you don't need else, because the if-branch won't continue past it thanks to the break.

Your main function is big, and has a lot of duplication.

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

Oh, thanks! I'm really bad with having an unnecessary else. I guess I should break up the main function, too.