Latest web development tutorials

Python includes exercises 60

Python 100 Li Python 100 Li

Title: calculate string length.

Program Analysis: None.

Source Code:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

sStr1 = 'strlen'
print len(sStr1)

The above example output is:

6

Python 100 Li Python 100 Li