My question might be simple but I really cannot figure out where I went wrong. I would like to pass one variable from a function to another function. I use return therefore but I'm always getting an error message, that my variable is not defined.
My code is:
url = "http://www.419scam.org/emails/2004-01/30/001378.7.htm"
def FirstStrike(url):
...
return tokens
def analyze(tokens):
...
if __name__ == "__main__":
FirstStrike(url)
analyze(tokens)
If I run this I got an error message: NameError: name 'tokens' is not defined.
returnstatement returns an object, not a name or a "variable".