divide by percentage python code example Example: python percent def percentage(percent, whole): return (percent * whole) / 100.0