0
Name ‘name’ is not defined
I am unsure why I keep getting this error message. I have defined the following name below with code following so I’m just confused why it is not working. I thought that I may have to define it before I call the name, but I have called the name before I defined it on other code I’ve written and it works fine. Anyone know why this is happening by any chance? Thanks.
7 odpowiedzi
+ 1
Jordan You're welcome!😊
+ 4
Jordan
You cannot get help on a code without providing the code.
I recommend you place it in the playground.
save it.
press "+"
select the code to share it.
+ 2
@jordan
python runs from top to bottom.
If you call your password method before it is defined, you will get an error.
+ 1
thanks for your fast replies! I’m new to the app, I will do that as soon as I can.
+ 1
that is the code which I am struggling with at the moment above.
+ 1
Oh right, I have moved the code around based on what you said and now it works! Thank you for your help!