Which function returns the data type of an object in Python?
Correct answer
C. type()
5 views
C. type()
5 views
type(obj) returns the class of the object.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is C? Ask here and get an explanation.