One common error faced by new python developer. The error message is a bit obscure if you don’t have fully grasp of the language — like what ‘callable’ is.
This error happen when you have code such as:-
print("Hello %s, your name is %s" (name, yourname))
On first glance, the code look correct. But the correct code is this instead:-
print("Hello %s, your name is %s" % (name, yourname))
What happen is that, forgetting to put the %
after the string, effectively making it out like you want to call the string as function, like:-
"hello"(name)
Which obviously wrong since string is not a function that you can call.