Python Tutorial Python Advanced Python Resources Python Libraries
Python Java C++ C C# PHP R SQL DS Algo InterviewQ

Python property() Function



The Python property() function returns the property attribute.

Syntax

property(fget, fset, fdel, doc)

Parameters

fget Optional. Specify function to get attribute value. Default: None
fset Optional. Specify function to set attribute value. Default: None
fdel Optional. Specify function to delete attribute value. Default: None
doc Optional. Specify function to get attribute value. Default: None

❮ Python Built-in Functions

5