I am learning Python now, yay! Anyway, I have a little problem. Here I do not see the problem:
x = 3 y = 7 z = 2 print "I told to the Python, that the first variable is %d!" % x print "Anyway, 2nd and 3rd variables sum is %d. :)" % y + z
But Python thinks differently - TypeError: cannot concatenate 'str' and 'int' objects .
Why is this so? I did not set any variable as a string ... as far as I can see.
source share