diff --git a/Method-Class/Method.py b/Method-Class/Method.py new file mode 100644 index 0000000..2818fa2 --- /dev/null +++ b/Method-Class/Method.py @@ -0,0 +1,18 @@ +class Student: + def __init__ (self,f,m,l): + self.first_name = f + self.middle_name = m + self.last_name = l + + def person (self): + self.individual = self.first_name + self.middle_name + self.last_name + return self.individual + + +Studentsname1 = Student("Spencer"," Cooper "," Galaxy") +Studentsname2 = Student("Thomas", "T", " Boimah") +Studentsname3 = Student("Freena", " Y", " Koikoi") +print("Welcome Student", Studentsname1.person()) +print("Welcome Student", Studentsname2.person()) +print("Welcome Student", Studentsname3.person()) +