how to check the type in the list python code example
Example: find type of an element in list python
mylist = ["hello", "world", 1, 2, 9999, "pizza", 42, ["this", "is", "a", "sub list"], -100]
type(mylist[3])
#int
type(mylist[1])
#str
type(mylist[-2])
#list
type(mylist[-2][1])
#str