There is a list comprised of three separate lists containing different data types. I want to retrieve the data type for each item in each list using iteration and nested for-loops. Completely new to Python and unsure of where to begin. Any help would be appreciated
x_list is the name of list of lists
for n in range (len(x_list[0])):
for m in (x_list):
print (type(m))
all items returned with class ‘list’
Pretty sure this is not iterating over each item correctly
Teknomom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.