From 079a090893e13c3ea02b70b44eca359d0c06c413 Mon Sep 17 00:00:00 2001 From: DarkCodeOrg Date: Sun, 27 Sep 2020 10:10:07 +0530 Subject: [PATCH] correction --- classes_objects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes_objects.py b/classes_objects.py index bc8599a..f45377b 100644 --- a/classes_objects.py +++ b/classes_objects.py @@ -6,17 +6,17 @@ class Human: - def __init__(self,name,age,gender): + def __init__(self,name,age,gender): ## the init function is executed whenever a class is initiated // we can use this function to pass parameters to the object when it is created self.name = name self.age = age self.gender = gender - def greet(self): + def greet(self): ## self refers to the name of the object that is being creatd using this class print("Hello I am " + self.name) def say_hi(self): print("HI EVERYBODY !!") - +