In Python
print(10 .__add__("1"))
The output comes as :
-NotImplemented
Why this as in just this, no error no exception
In Python
print(10 .__add__("1"))
The output comes as :
-NotImplemented
Why this as in just this, no error no exception
print(10 .__add__("1"))
the ("1")
specifies the string,since it is enclosed in a double quotes..
10 indicates integer....
the function to add string and integer is probably may not be implemented earlier..so this is why python shows NotImplemented
print(10 .__add__(1))
and the space also doesn't matter..!!!!
print((10).__add__(1))
the above two codes also will work