Python Exercise Example62
# Python2.x Python Exercise Instance 62
[ Python 100 Examples](#)
**Title:** Find string.
**Program Analysis:** None.
Program source code:
```python
#!/usr/bin/python
# -*- coding: UTF-8 -*-
sStr1 = 'abcdefg'
sStr2 = 'cde'
print sStr1.find(sStr2)
The output of the above instance is:
2
[ Python 100 Examples](#)
YouTip