Python Tutorial Python Advanced Python References Python Libraries

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