r/learnpython • • Feb 29 '20

Actually used python today

I've been learning python for about a month now. I started with automate the boring stuff like so many others have. Since then I have made some small games to practice. I am currently working on a hangman game and needed a list of words to use. I found a list of words and copied the whole thing to a .text file but it came with extra stuff I didn't need. So instead of manually deleting everything I didn't need I made a python script to do it for me. GREATEST FEELING EVER.

393 Upvotes

63 comments sorted by

View all comments

2

u/midairmatthew Feb 29 '20

Neat! Next step for hangman: find an API that can serve random words and dig into the Python Requests module. :)

2

u/dstnmyrs Mar 01 '20

I just started toying around with wordsAPI after reading your comment. I'm getting random words and after a few missed guesses it shows synonyms and with 1 guess left it shows the definition. I'll eventually add those features based on difficulty selected.

2

u/midairmatthew Mar 01 '20

That's awesome! Nice work.