Python Objects
Python is an object oriented language, and in Python, everything is an object. This means that everything has some data associated with it. These data values are called ‘attributes’. Objects are often referred to as ‘classes’. A class can be used to create any object, for example, the class below defines a dog.

There are many methods to help handle classes in Python. One of these is the type() method. This method returns the type of an object. There is another important method called id(). This will get the id of an object. All objects have ids associated with them and these remain constant for that object.
Mutable Objects are objects that can be changed after being created. This is useful because it gives you the ability to modify values at any point in the program. Things such as lists and dictionaries would be considered mutable because they can be changed at any time.
Immutable Objects are objects that cannot be changed after they are created. This is useful becomes should be constant and you do not want them to be accidentally changed. Built in types such as integers and floats are immutable since they cannot be changed at any time.