State the difference between ""import math"" and ""import math as a""
Answers
Answered by
2
Answer:
When you use "import math" you have to use the format as "math.operationName(value)" to use different functions in math module.
When you use "import math as a", you tells the program that you are using "a" instead of "math" in using the module. This method is generally used to save time as there are modules in python with big names. So the format with this command is: "a.operationName(value)"
Similar questions