Q. What are three internal key-attributes of a value-variable in Python Explain with example.


Answer = (1)A  type :-

It determined the type of object by using function type()

Example = >>>a = 5

                        >>>type(a)

                        <class ‘int’>



(2)A value :-

It is data item contained in the object .it can use by print statement.

Example = >>>a = “python”

                        >>>print (a)

                        ‘python’

(3) the id :-

It refers the memory location of the object. It can use by function id ()

Example = >>>a = 8

                        >>>id (a)

                        308829545 






 You can uderstand by watching videos -----


 





Tags ----
what are three internal key attributes of a value variable in python
what are three internal key attributes of a value variable in python explain with example
what are the three internal key attributes of a value variable in python

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post