Write two ways in which you are able to use constant pi in your programs.
Answer:
Two ways to use constant pi in programs are:
(i)
import math
print(math.pi)
(ii)
from math import pi
print(pi)
Past Year - 1 Mark Questions
Past Year - 1 Mark Questions
Last updated at Dec. 13, 2024 by Teachoo
Answer:
Two ways to use constant pi in programs are:
(i)
import math
print(math.pi)
(ii)
from math import pi
print(pi)