Python Hacking Game Return Value will not be accessed

Python Hacking Game I returned a value but its not being accessed by the other functions. Why is this?
strikeouts27

my code:
https://paste.pythondiscord.com/VH7A

I am trying to create a hacking game similar to this.
automate the boring stuff with python solution code:
https://paste.pythondiscord.com/4RMA
https://inventwithpython.com/bigbookpython/project33.html

The thing is, when I try to access the word list which, is a list of the available words for the game and what is returned on def word_selection, python says it is unavailable for other functions. I thought returning something makes it accessible for other functions.

You need to assign the function call to a variable, then the returned value will be accessible via the variable name.

Hope that helps!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.