banoo , as you can see, it is always a good idea to prepare a question for q&a well. Provide the complete code, not only one line. Also read the error message carefully, it indicates the line number where the problem occurs.
Doing so, saves us a lot of going back and forth and many unnecessary enquiries. Thanks!
how did you imported?
from math import pow
this will give an error math not defined:
this will not:
if you wanna use with main module name like:
If you are doing it in SOLOLEARN, it will give an error , because math module is not imported .
When you try in your PC , again it gives same , that means you have to install the library in to your machine.
So rectify it.