Pure Programmer
Blue Matrix


Cluster Map

Project: Math Constants

Write a program that prints the values for π, 𝑒 φ (Golden Ratio) and ln 2. Use named constants for all three values.

Output
$ python3 MathConstants.py π: 3.141592653589793 ℯ: 2.718281828459045 φ: 1.618033988749895 ln2: 0.693147180559945

Solution