This week, each one of you has a homework assignment ... - Tyler Durden (Fight club)
Hi Pythonistas, a new week, a new 'bite' of Python coding!
This week we are going to code the well-known Hangman game.
We think this is a nice challenge because you have to think about design, iteration, working with various data structures, keep state (class?), etc.
We provide you with some graphs and the topic will be movies: you get a top 100 of movies in a text file and code to load them into your program.
For the rest we kept the template pretty empty to not force you too much into one direction.
Of course if you have questions use the comments below. End of this week we discuss our solution and we hope we all learn a lot from each other.
Use persistence to keep track of scores (invent your own system) and report when the user breaks a new record.
We focus on the logic so command line is the required interface, however if you like to wrap this into a GUI, feel free ...
To keep it 'DRY' we abstracted the instructions out into an INSTALL.md page in our repo, see here. New or returning visitor, you should have all you need to get up and running.
And remember: there is no best solution, only learning more/ better Python. We're looking forward reviewing our and your solutions end of this week. Good luck and have fun!
Keep Calm and Code in Python!
-- Bob and Julian
Do you want to get 250+ concise and applicable Python tips in an ebook that will cost you less than 10 bucks (future updates included), check it out here.
"The discussions are succinct yet thorough enough to give you a solid grasp of the particular problem. I just wish I would have had this book when I started learning Python." - Daniel H
"Bob and Julian are the masters at aggregating these small snippets of code that can really make certain aspects of coding easier." - Jesse B
"This is now my favourite first Python go-to reference." - Anthony L
"Do you ever go on one of those cooking websites for a recipe and have to scroll for what feels like an eternity to get to the ingredients and the 4 steps the recipe actually takes? This is the opposite of that." - Sergio S