check if object is instance of class python code example
Example: isinstance several variables
'check if variables days, months or years are all integers
if not all(isinstance(i, int) for i in [days, months, years]):
'check if variables days, months or years are all integers
if not all(isinstance(i, int) for i in [days, months, years]):