Write a Python program to get the Identity, Type, and Value of an object.

Write a Python program to get the Identity, Type, and Value of an object.

1
2
3
4
x = 34
print("\nIdentity: ",x)
print("\nType: ",type(x))
print("\nValue: ",id(x))

Final output

Leave a Comment