+ 1

Name is not defined, againšŸ˜„ Help my, please

https://code.sololearn.com/cIoixieAR5e1/?ref=app

20th Oct 2017, 3:41 AM
Iryna Shevchenko
Iryna Shevchenko - avatar
3 Answers
+ 5
yhat exists in a local scope when in the function. You need to declare another yhat and y in a global scope
20th Oct 2017, 3:46 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
+ 5
inside function: local scope outside function: global scope
20th Oct 2017, 3:46 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
0
many thanksšŸ˜ŠšŸ‘šŸ‘šŸ‘
21st Oct 2017, 8:01 AM
Iryna Shevchenko
Iryna Shevchenko - avatar