Let's say I have a dictionary with several lists and tuples, and I wanted to loop over all of the dictionary's items, and also loop over all of the dictionary's tuples and lists too (so as to just get the values and keywords) is there a way to do it other than just defining a bunch of for loops?
I.e.:
def islist(arg):
if type(arg) == list or tuple:
#loop
for i in arg:
if type(i) == list or tuple:
#again
for i in arg:
if type(i) == list or tuple:
#again