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.

2nd Jul 2018, 3:12 PM
Jordan
7 odpowiedzi
+ 1
Jordan You're welcome!😊
2nd Jul 2018, 3:54 PM
Manual
Manual - avatar
+ 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.
2nd Jul 2018, 3:14 PM
Manual
Manual - avatar
+ 2
@jordan python runs from top to bottom. If you call your password method before it is defined, you will get an error.
2nd Jul 2018, 3:43 PM
Manual
Manual - avatar
+ 1
thanks for your fast replies! I’m new to the app, I will do that as soon as I can.
2nd Jul 2018, 3:16 PM
Jordan
+ 1
that is the code which I am struggling with at the moment above.
2nd Jul 2018, 3:38 PM
Jordan
+ 1
Oh right, I have moved the code around based on what you said and now it works! Thank you for your help!
2nd Jul 2018, 3:50 PM
Jordan