+ 1

What does the "string not callable" mean?

https://code.sololearn.com/c1ny0M4lht2j/?ref=app

13th Dec 2019, 12:11 AM
Putu Pramodia
Putu Pramodia - avatar
2 Answers
+ 1
It does not happen in that program.
13th Dec 2019, 1:01 AM
HonFu
HonFu - avatar
+ 1
It happens if you name some string "str", overloading the built-in conversion function: str = str(42)
13th Dec 2019, 5:58 AM
Bilbo Baggins
Bilbo Baggins - avatar