python print from list code example
Example 1: print string elements in list python
# list having all elements are strings
strings = ['string1', 'string2', 'string3', 'string4']
for string in strings:
print(string)
Example 2: print all objects in list python
for p in myList:
print p