Learn Python @property in 7 minutes! ⚙️

12 Views
Published
# @property = Decorator used to define a method as a property
(it can be accessed like an attribute)
# Benefit: Add additional logic when read, write, or delete attributes
# Gives you getter, setter, and deleter method

00:00:00 getter
00:03:43 setter
00:05:53 deleter

#python #pythonprogramming #pythontutorial
Category
Bro Code
Tags
Python tutorial, python course, python programming
Be the first to comment