Python Methods Flashcards
1
Q
Python method to know object type ?
A
isinstance() method
~~~
isinstance(variable,objectType)
isinstance(list1,list)
# returns True
~~~
Sem 1-AHEAD_Cyber_Security > Python Methods > Flashcards
Python method to know object type ?
isinstance() method
~~~
isinstance(variable,objectType)
isinstance(list1,list)
# returns True
~~~
Sem 1-AHEAD_Cyber_Security (27 decks)