''' This code show example how to find string length ''' data = " Life is very easy with Python " dataLen=len(data) print dataLen data=data.strip() dataLen=len(data) print dataLen
Output:
34 29
''' This code show example how to find string length ''' data = " Life is very easy with Python " dataLen=len(data) print dataLen data=data.strip() dataLen=len(data) print dataLen
34 29
0 comments:
Post a Comment