#!/usr/bin/env python def power(base, exp): total = 1 while exp > 0: total = total * base exp = exp - 1 return total