0

How could be possible to this: NameError: name'np' is not defined??? Please, explain me :)

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

12th Oct 2017, 12:33 PM
Iryna Shevchenko
Iryna Shevchenko - avatar
6 Answers
+ 3
what is "np"? maybe an object from a class? you must to define it
12th Oct 2017, 12:58 PM
Daniel
Daniel - avatar
+ 3
You need to write "import numpy as np" again in the new code. Then it will work.
12th Oct 2017, 1:34 PM
Ferhat Sevim
Ferhat Sevim - avatar
+ 2
Try to set random to 100 and the same for loop
12th Oct 2017, 2:23 PM
Daniel
Daniel - avatar
+ 1
np means Numpy I have first code this. He is working...but second - no. Many thanks 😊 https://code.sololearn.com/cOdfq9XpcmE1/?ref=app
12th Oct 2017, 1:04 PM
Iryna Shevchenko
Iryna Shevchenko - avatar
+ 1
many thanks 😊
12th Oct 2017, 3:56 PM
Iryna Shevchenko
Iryna Shevchenko - avatar
0
I'm trying...but-no😔😔😔 Where is my mistake?? Thanks😊 https://code.sololearn.com/ck0cWX8maHaM/?ref=app
12th Oct 2017, 2:19 PM
Iryna Shevchenko
Iryna Shevchenko - avatar