Check sibling questions

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)

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.