def exponent_a_list(numerical_list , exponent = 2):
if type(numerical_list ) is not list :
raise Exception( "You are not using a list for the numerical_list input."
)
new_exponent_list = list()
for number_in_new_exponent_list in numerical_list:
new_exponent_list.append( number_in_new_exponent_list ** exponent )
return new_exponent_list