Today, I will be exploring why everything in Python is an object. I will explain what this means exactly and describe how objects are used to represent values in Python. I will begin with a basic description of objects.


In Python, an object represents a value that a variable can refer to. To put it simply, an object is a value that can be referenced. For example, if the variable n holds the value 7, the variable n references an object who’s value is 7. Below is the code representing the previous example.

#n is a variable
#object with value…

Anthony Armour

Software Engineering Student at Holberton School

In this post, I am going to talk about classes, objects/instances, and attributes. I hope to explain their usage and functionality at a basic level. Programmers can create many brilliant structures to model real world problems with even simple implementation of classes and objects. Today I hope to introduce the basics of object oriented programming in Python and highlight the differences between class attributes and instance attributes. Let’s begin!

In object-oriented programming, classes are used to represent real world situations and data. Objects/instances are then created based on these classes. Each object’s behavior is…

Anthony Armour

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store