Home »
MCQs »
Python MCQs
The type() function can be used to get the data type of any object
8. The type() function can be used to get the data type of any object.
- True
- False
Answer: A) True
Explanation:
The type() function can be used to find out what type of data an object contains. Typing an object passed as an argument to Python's type() function returns the data type of the object passed as an argument to Python's type() function. This function is extremely useful during the debugging phase of the process.