What is difference between variable and attribute Python?

An attribute behaves just like a variable in that it can reference any object without having to be declared as a specific type . Attributes are untyped. Now we have an example custom object, it is possible to demonstrate the idea that variables store references to objects.

Sizin İçin Seçtik  What is variable and attribute explain with examples?

Leave a Reply

Your email address will not be published. Required fields are marked *