Simple Python example
# Calculate the mass of the atmosphere.
import math
print ("Hello ATMS411_611!\n");
# Input values.
Re=6.371e6 # Radius of the earth in meters.
P=1.01325e5 # Surface pressure in Pascal.
g=9.81 # Acceleration due to gravity at the Earth's surface N/kg units.
pi=math.pi # Value of pi.
# Calculated values.
A = 4*pi*Re**2 # Earth's surface area.
M = P*A/g # Earth's atmospheric mass.
print ("Atmospheric Mass = ",format(M,'1.4E')," kg")