diff --git a/__pycache__/panda.cpython-313.pyc b/__pycache__/panda.cpython-313.pyc new file mode 100644 index 0000000..059b173 Binary files /dev/null and b/__pycache__/panda.cpython-313.pyc differ diff --git a/main.py b/main.py new file mode 100644 index 0000000..aa35d49 --- /dev/null +++ b/main.py @@ -0,0 +1,8 @@ +from panda import Panda + + +panda1 =Panda('gggg' ,' 27' , '179' ,' 110') +panda1.name_and_age() +panda1.weight_and_height() + +print(panda1) \ No newline at end of file diff --git a/panda.py b/panda.py new file mode 100644 index 0000000..e9bb401 --- /dev/null +++ b/panda.py @@ -0,0 +1,18 @@ + +class Panda: + def __init__(self ,name:str,age:str,weight:str , height:str): + self.name = name + self.age = age + self.weight = weight + self.height = height + + def name_and_age(self): + print(f'this panda name :{self.name}age is {self.age}') + + + def weight_and_height(self): + print(f'weight is {self.weight}and height is {self.height}') + def __str__(self): + return "yo" + +