What are three internal key attributes of a value variable in python explain with example
Answers
Python is an object oriented language Python calls every entity that stores any values or any type of data is an object. an object is an entity that has certain properties and exhibit a certain type of behaviour every Python object has three key attributes associated to it ~
1. The types of an object=
the type of an object determines the operations that can be performed on the object built in function type ( ) return the type of an object.
2.The value of an object =
it is the data item contained in the object for a literal the value is literal itself and for a variable the value is the data-item.
3. The id of an object =
the id of an object is generally the memory location of the object built in function id ( ) returns the ID of an object.
Answer:
Three internal key attributes of value variable in python are-
Explanation:
1. type of an object
2. value of an object
3. id of an object
Short answer