python help needed

This assignment requires one file containing a main function and a recursive function named power.

In main:

  • prompt the user to enter an integer for the base of the power.
  • prompt the user for an integer for the exponent of the power.
  • call the power function and print its returned value.

The recursive power function, power(base,exponent), must recursively calculate the value of the power and then return it.

SAMPLE OUTPUT
Enter an integer for the base: 2
Enter an integer for the exponent: 5
2 to the power 5 equals 32

SAMPLE OUTPUT
Enter an integer for the base: 3
Enter an integer for the exponent: 4
3 to the power 4 equals 81

 
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!

NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.