initial commit

This commit is contained in:
2023-07-16 13:23:25 +00:00
commit c3fa5367c3
85 changed files with 4921 additions and 0 deletions

17
Python/OOP3/task4.py Normal file
View File

@ -0,0 +1,17 @@
class Person:
def __init__(self, name: str):
self._name = name
@property
def name(self) -> str:
return self._name
@name.setter
def name(self, new_name) -> None:
self._name = new_name
p = Person("abc")
print(p.name)
p.name = "10"
print(p.name)