Is there a simple way to determine if a variable is a list, dictionary, or something else? I am getting an object back that may be either type and I need to be able to tell
You can do that using type():
type()
>>> a = [] >>> type(a) >>> f = () >>> type(f)