Answers for "python check instance of"

2

is instance string python

isinstance(x, int)
isinstance(s, str)
Posted by: Guest on December-08-2020
1

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]):
Posted by: Guest on September-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language