how to print a specific element of a list in python code example
Example 1: print specific list item python
lis_t = [1, 4, 5]
print(lis_t[2]) #will print 5
Example 2: print all objects in list python
for p in myList:
print p
lis_t = [1, 4, 5]
print(lis_t[2]) #will print 5
for p in myList:
print p