So I was given a list and I must print the type of each item in the list. I can clearly see that there are strings and integers but I need it to print out in Python. We just
use the type built in function of python.
type
lst = ['string', 1, 2, 'another string'] for element in lst: print type(element)
output: