Hi,
Pls tell me whats going on in the code snippet below:
<type 'tuple'>
('N = ', 10)
N = 10
In the first case the result is printed as a tuple and in the second
it appears as an ordinary string.
Pls tell me whats going on in the code snippet below:
>>n = 10
>>statstr = "N = ",n
>>type(statst r) #case1
>>statstr = "N = ",n
>>type(statst r) #case1
>>print statstr
>>print "N = ",n #case 2
In the first case the result is printed as a tuple and in the second
it appears as an ordinary string.
Comment