When running this code it appears with an error that there are too many arguments in line 8. I\'m unsure on how to fix it.
#Defining a function to raise the firs
you need to specify x variable :
x
using format
y = int(input("What power would you like to raise {}to?\n".format(x)))
or
y = int(input("What power would you like to raise %d to?\n"%x)))