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
Change your y input line to
y
y = int(input("What power would you like to raise" + str(x) + "to?\n"))
So you will concatenate the three substrings into a single string.