A Admin • 833.24K Points Coach Q. Which of the following defines a property in Python? (A) def get_name(self): return self.name (B) @property def name(self): return self._name (C) name = get_name() (D) self.name = 'abc' Correct Answer - Option(B) Views: 36 Filed under category Python Hashtags: Share Manage Tags
Discusssion
Login to discuss.