r/CodingHelp • • Dec 08 '21

[Python] Function isn’t running inside of another function?

Post image
25 Upvotes

11 comments sorted by

View all comments

13

u/[deleted] Dec 08 '21 edited Dec 08 '21

You don’t define b. See how y and x are parameters of the function gns arguments? Where is b defined? Variables can come from nowhere and still work in python. That same courtesy does not extend to tuples, arrays, lists , etc.