TypeError Too many Arguments

后端 未结 4 1894
自闭症患者
自闭症患者 2021-01-23 03:29

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         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-23 04:09

    Change your y input line to

    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.

提交回复
热议问题