# Program to calculate X to the power of Y # CS105 Lab # print "This program reads x and y and calculates X to the power of Y" x = input("x: ") y = input("y: ") final=1 for index in range (y): final = final * x print "The value of",x,"to the power of",y,"is:", final