Python Exponentiation

Description

Python program to calculate Power of a Number
Sample Input
2
3
Sample Output 
8

Solution

b=int(input("enter the base:"))
p=int(input("Enter the power:"))
exp=b**p
print("exponentiation : {}".format(exp))

Explanation

Read two inputs using input() method.
Conver it into integer by int() method.
% operator gives remainder.