World's Best AI Learning Platform with profoundly Demanding Certification Programs
Designed by IITians, only for AI Learners.
Designed by IITians, only for AI Learners.
New to InsideAIML? Create an account
Employer? Create an account
while creating array range getting error no name not found
The error message "NameError: name 'np' is not defined" means that the numpy library, which is usually imported using the alias "np", has not been imported in the current script. To fix the error, you need to add the line "import numpy as np" at the beginning of the script, before using any numpy functions or objects.