Skip to content Skip to sidebar Skip to footer

Str Object Is Not Callable Python

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 couldn't

Solution 1:

Assuming you're using Python 3,

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

You forgot a comma.

Solution 2:

You can print the value either with:

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

or with

print ("The area of your shape is: {}".format(a*b))

Post a Comment for "Str Object Is Not Callable Python"