+ 1

Why it is saying square is not defined ?

Hi guys why this code is saying square is not define right now I am trying in Sololearn and in python apps on smartphone and on both it is saying same Python code :- https://code.sololearn.com/cx1X2nUzSciB/?ref=app

20th Oct 2020, 1:21 AM
Sayyam Jain
Sayyam Jain - avatar
5 Respuestas
+ 3
There must be a NameError. Python may not recognize foreign things See this link: https://careerkarma.com/blog/python-nameerror-name-is-not-defined/
20th Oct 2020, 1:33 AM
Dino Wun (Use the search bar plz!)
Dino Wun (Use the search bar plz!) - avatar
+ 2
Cz they are not python inbuilt functions Here is how squaring a number is done in python https://www.includehelp.com/python/calculate-square-of-a-given-number.aspx Complete this course to know more about ehat functions are and how to create one https://www.sololearn.com/learn/Python/2285/
20th Oct 2020, 1:51 AM
Shreyansh
Shreyansh - avatar
+ 2
Shreyansh [ #yellove ] Thanks I will definitely complete it
21st Oct 2020, 4:30 AM
Sayyam Jain
Sayyam Jain - avatar
+ 1
Jan Markus Thanks it helps Can you tell me in phone should I have to download python packages for it for these names
21st Oct 2020, 4:30 AM
Sayyam Jain
Sayyam Jain - avatar
+ 1
Dino Wun Thanks for help
21st Oct 2020, 4:31 AM
Sayyam Jain
Sayyam Jain - avatar