Saturday, 3 November 2012

Dealing with String


## This is the Dealing of other data types with string


num=raw_input('Enter Any String: ')
print 'When we Multiply an interger value with string \n it multiplies the string two times as: ', 2*num
print 'If we try to add interger value to String interprater will generat Error!!!'
print 'But we can add string with string as : ',num+num

No comments:

Post a Comment