+ 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
5 Réponses
+ 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/
+ 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/
+ 2
Shreyansh [ #yellove ] Thanks I will definitely complete it
+ 1
Jan Markus Thanks it helps Can you tell me in phone should I have to download python packages for it for these names
+ 1
Dino Wun Thanks for help