Python Methods Flashcards

1
Q

Python method to know object type ?

A

isinstance() method
~~~
isinstance(variable,objectType)
isinstance(list1,list)
# returns True
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly