🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

Python में type() function का क्या काम है?

What does the type() function do in Python?

A
Change data type
B
Return the data type of an object
C
Print data type as string
D
Delete variable
Explanation

Python में type() function का उपयोग किसी object या variable का data type पता करने के लिए किया जाता है।

type() function returns the class/type of the object you pass to it.


🔹 Example / उदाहरण:

x = 10
print(type(x))     # Output: <class 'int'>

y = "Hello"
print(type(y))     # Output: <class 'str'>

 

Correct Answer: B) Return the data type of an object

Latest Updates