Python - Variables and Dynamic Typing
Which of the following expressions correctly checks if variable
a is of type int using type()?a is of type int using type()?==.== correctly. type(a) = int uses single equals which is assignment, causing syntax error. type(a) === int uses triple equals which is invalid in Python. type(a) != int checks inequality, not equality.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions