2021年4月7日星期三

Why does this "missing 1 required positional argument" error occur? [closed]

I am getting the error "TypeError: calculation() missing 1 required positional argument: 'itemPrice'" How do I fix this? I have tried about everything and watched many videos but cannot find the solution.

global itemPrice, priceDrop, i, endMessage        itemprice = 0  priceDrop = 0  i = 0  endMessage = "Thank you for using this program."    def main():      # user inputs price      housekeeping()      #calculatets for price drop for six weeks      calculation()      

没有评论:

发表评论