Python Classes vs Objects Explained Simply (Beginner Friendly)

Опубликовано: 08 September 2014
на канале: John Philip Jones
98,868
1.1k

This beginner‑friendly Python tutorial explains the difference between classes and objects using a clear real‑world analogy.

We start by comparing Python classes to building blueprints, and Python objects to the houses created from those blueprints — a simple way to understand how objects are formed, labelled, and stored in memory.

In the video, you’ll learn:

how assignment statements create objects in Python

why objects have an ID, type, and value

how Python uses classes (like int, float, and str) as templates

why different variables can refer to the same object

how Python handles integers, floats, and strings inside the execution space

This tutorial walks through multiple examples step‑by‑step, including:

a = 2 creating an integer object

b = 3 creating a second, different integer object

b = 2 reusing the existing object instead of creating a new one

creating float and string objects such as a = 9.81 and my_string = "spam spam"

A key quote from the video:

“The integer class was the template that allowed the object to be created, but once the object is in the execution space it exists in its own right.”

Perfect for absolute beginners who want to understand Python’s object model clearly and visually. #JohnPhilipJones


На этой странице сайта вы можете посмотреть видео онлайн Python Classes vs Objects Explained Simply (Beginner Friendly) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь John Philip Jones 08 September 2014, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 98,868 раз и оно понравилось 1.1 тысяч зрителям. Приятного просмотра!