Quiz
Take this quiz to test your understanding of the concepts explained in this chapter!
1
Which of the following is the correct way to import and use the exp
function from the math
module? Select all that apply.
A)
from math import exp
num = 5
exp_num = exp(num)
print(exp_num)
B)
import math
num = 5
exp_num = math.exp(num)
print(exp_num)
C)
import exp from math
num = 5
exp_num = exp(num)
print(exp_num)
D)
from math import *
num = 5
exp_num = exp(num)
print(exp_num)
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.