def power(base, exponent): # Add your parameters here!
result = base ** exponent
print “%d to the power of %d is %d.” % (base, exponent, result)
power(37, 4) # Add your arguments here!
Why in the print command do we write print “%d to the power of %d is %d.” % (base, exponent, result) and not just
print base + " to the power of " + exponent + " is " + result
is it just that the latter has to many quotes and +s? Both seem about equally jumbbly.