python use pi

Solutions on MaxInterview for python use pi by the best coders in the world

showing results for - "python use pi"
Luciana
02 Jan 2017
1#import pi function from math module
2from math import pi
3
4#Show pi value
5print(pi)
Jana
06 Mar 2017
1# Import math Library
2import math 
3
4# Print the value of pi
5print (math.pi)