Answer :
Answer:
- from math import cos
- from math import sin
Explanation:
To import only a specific function from a module, we can use a syntax as follows:
- from module import function_name
Once the specific function imported from the module, we can directly invoke the function in our code as follows:
- cos(0.5)
- sin(0.45)
Please note this is not necessary to call the function by preceding the function name with math module (e.g. math.xxx). Hence, this approach also help to reduce the code redundancy.