python print single element code example
Example 1: print value of array python
visit = ['noah-', 'chatelain', '.fr']
print visit[0] # return string : 'noah-'
print visit[1] # return string : 'chatelain'
print visit[2] # return string : '.fr'
print 'go visit : ' + visit[0] + visit[1] + visit[2]
# return 'go visit : noah-chatelain.fr'
Example 2: print all objects in list python
for p in myList:
print p