Which of the following commands will print the pi number entered in the math module?
A. print(pi)
B. print(math.pi)
C. Pi print from math (pi)
D. import pi print from math (math.pi)
Answer:C
Which of the following commands will print the pi number entered in the math module?
A. print(pi) B. print(math.pi) C. Pi print from math (pi) D. import pi print from math (math.pi)
Explanation: The pi value defined in the math module will be printed by print(pi) from math import pi.