Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python property() function is used to return 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