Any one can explain this code what are all process has done in this code how the input it get & what mathematical function here | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

https://code.sololearn.com/czB8A6Phns93/?ref=app

1st Oct 2018, 12:46 PM
Raj J
Raj J - avatar
2 Respostas
+ 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.
1st Oct 2018, 1:01 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 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.
1st Oct 2018, 1:01 PM
Maninder $ingh
Maninder $ingh - avatar