Skip to content
Advertisement

How can resolve this error in Python: “TypeError: ‘str’ object is not callable” [closed]

How can I fix this error?

I’m facing this error on every example I’m trying to run. I’m new to Python and trying to add spaces in my code.

This is my code

JavaScript

And I’m getting this error

JavaScript

Advertisement

Answer

fix

JavaScript

output

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement