Concatenation of strings and Integers in Python
Ok,finally i have decided to play with Python,i made few warmup scripts.Python is yet very neat and clean language for me and easy to learn.Like Java or C#, "+" is used for concatenation purpose,but if you try to something like this:
"adnan" + 007
you will get something like:
TypeError: cannot concatenate 'str' and 'int' objects
the easy way to do runtime type conversion is to use str() function,so now
print "adnan"+str(a) will work perfectly fine.