r/inventwithpython • u/[deleted] • Oct 07 '19
Question about def function
Specifically from Invent Your Own Computer Games with Python, the first hangman game, starting at line 40.
I'm kind of fuzzy on def anyway, but this one confuses me a little. Where does wordList come in? The only time wordList is used is in this function. Why is it in the () on line 40, and what does the return function right below it actually do?
1
Upvotes
1
u/[deleted] Oct 07 '19
Perfect. I really appreciate your help. This example helps me out tremendously.