Without functions all we have are attributes of objects. Functions are where variables live. This extract from Programmer's Python: Everything is an Object explains that functions bring something new ...
Once you have a reference to an object you can generally add attributes to it simply by assigning to them. creates myNewAttr and sets it to the value 2. In fact, you can create a complete custom ...