+ 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 odpowiedzi
+ 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