How To Write An Exponential Function In Python