What is the output of the following Python code snippet?
import math
print(math.pi)
print(math.pi)
Correct answer
A. 3.141592653589793
11 views
A. 3.141592653589793
11 views
math.pi holds the value of pi as a float.
Asked in: Python Interview Standard Library
https://docs.python.org/3/library/index.htmlNot sure why the answer is A? Ask here and get an explanation.