>>> defpressure(v, t, n):"""Compute the pressure in pascals of an ideal gas.
Applies the ideal gas law: http://en.wikipedia.org/wiki/Ideal_gas_law
v -- volume of gas, in cubic meters
t -- absolute temperature in degrees kelvin
n -- particles of gas
"""
k = 1.38e-23# Boltzmann's constantreturn n * k * t / v
When you call help with the name of a function as an argument, you see its docstring (type q to quit Python help).
>>> help(pressure)