Hey guys, anyone know what is happening, please give me some advice
-Thank you so much-
Calling a function before it is defined. Switch the two functions around so that main() follows get_name()/
Oh. I see. Thank you so much for your help!
Again, there are functions being called before they are defined. But there is also a problem with the variables not existing in global scope.
def compare(): if LA() > SF(): #...
should work. I’m pretty sure that Python does not ‘hoist’ the way JS does so order of definitions is important. We should not be calling a function from above its definition.
Thank you so much for your reply!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.