I am pretty new in programming, just learning python.
I'm using Komodo Edit 9.0 to write codes. So, when I write "from math import sqrt", I can use the "sqrt" function without any problem. But if I only write "import math", then "sqrt" function of that module doesn't work. What is the reason behind this? Can I fix it somehow?
When you only use import math the sqrt function comes in under a different name: math.sqrt.
"from math import sqrt" works but "import math" does not work. What is the reason?