x = 5
y = 5
print (x+y) #prints 10
This is easy because everyone knows that + sign adds 2 values together.
print(str(x)+str(y)) #prints 55
I understand that there are more then one way to do this but, the bottom line
is, this is not logical.
Tony+Maria
is what we used to write when we were little
Inability to visually identify a variable without looking at where its placed
and/or how its used is sometimes brain damaging task when it comes to
understanding code someone else wrote.
In fact, i dont know any IDE that can identify python or any language variable
and color them as good as Auto
OMG people, no one said its a replacement for +
Its an addition. that does nothing but combining data.
It does not perform any mathematical operations whats so ever. It simply puts
things together regardless of their data type.
(1.1 & 5 & "word") results in 1.15word
That fact that you say "will be