Solved

You Are Working on a Python Script That Relies Heavily

Question 42

Multiple Choice

You are working on a Python script that relies heavily on the cos and sin functions of the math module. As these are the only functions you require, what should you do to import only these functions, rather than the whole math module?


A) import cos, sin
B) import cos, sin from math
C) import math.cos, math.sin
D) from math import cos, sin

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents