python check if variable is list or number code example
Example: python check if variable is list or number
isinstance([0, 10, 20, 30], list) # True
isinstance(50, list) # False
isinstance([0, 10, 20, 30], list) # True
isinstance(50, list) # False