nameList = ['ab','cd','ef']
for i in range(len(nameList)):
print nameList[i]
str2="bsadgfsdaf"
for i,t in enumerate(str2):
print i,t
0 b
1 s
2 a
3 d
4 g
5 f
6 s
7 d
8 a
9 f
nameList = ['ab','cd','ef']
for i in range(len(nameList)):
print nameList[i]
str2="bsadgfsdaf"
for i,t in enumerate(str2):
print i,t
0 b
1 s
2 a
3 d
4 g
5 f
6 s
7 d
8 a
9 f