Nov-30-2018, 11:28 PM
That's the best query I have figured out:
base = input("choose a power base: ") exp = input("choose a power exponent: ") for x in range(exp+1): x=base**x print xI haven't been able to do it with the x*x*x form, can you tell me if there is a better way to do it?
base = input("choose a power base: ") exp = input("choose a power exponent: ") for x in range(exp+1): x=base base*=base print xThanks