str object is not callable python

后端 未结 2 474
失恋的感觉
失恋的感觉 2021-01-23 03:51

I have tried looking around for an answer however the questions on here either seemed to advanced (I\'m new to Python) or because of redefining what something meant which I coul

2条回答
  •  余生分开走
    2021-01-23 04:38

    Assuming you're using Python 3,

    print ("The area of your shape is: ", (a*b))
    #                                   ^
    

    You forgot a comma.

提交回复
热议问题