+ 1
Any one can explain this code what are all process has done in this code how the input it get & what mathematical function here
2 Réponses
+ 1
pi (π) is a mathematical constant equal to the ratio of a circle's circumference to its diameter. This code prints the value of pi (well, an approximate value).
To do that, the code first obtains the constant from the math module, where it is stored.
The function print() is used to display something, which is pi in this case.
+ 1
Math is module in python and you are import pi from math module and you are printing it's value.if you are math student or know maths then we all of know value of pi=3.14 we use but actual value of pi is so bigger and in python you get the value of pi very precise.