+ 1
i=10 i() -- it gives an error int is not callable why?
why int or str is not callable?
4 Réponses
+ 8
You can call a function. You just can't call a data type...
+ 5
I think you can print I without a function but not in SoloLearn.
And you can't call objects, you can call methods, functions and classes, but of an object, you only can get their attributes.
0
It's an object anyway. Then it's Datatype? why python won't allow this?
let's say I want print string using same way as my question
I = "hello"
I()
I want output "hello" without creating any function.
0
Your avatar is so cute