Pi is an important number in mathematics and engineering. It is an irrational number, meaning that it cannot be expressed exactly as a ratio of two integers.
You can find many Python programs on the web that calculate Pi to N places.
Click
HERE
to go to one of them.
Calculate Pi to N places and display it. Display Pi to 6, 10, 20, 50, 100 places.
Hint:
e (Euler's number) is also an important number in mathematics and engineering. It is an irrational number, meaning that it cannot be expressed exactly as a ratio of two integers.
You can find many Python programs on the web that calculate e to N places.
Click
HERE
to go to one of them.
Calculate e to N places and display it. Display e to 6, 10, 20, 50, 100 places.
Hint:
Pi (Wikipedia)
e (mathematical constant) (Wikipedia)