Create a python code that will allow the user to enter a number as the loop’s range, and to enter another number that will enable the program to calculate its exponent for the each iterate of the range. Then, the program will print the answers of calculating the exponents and beside each answer the number of the iterate of the given range.
The code:
The output: