You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
575 B
Python

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())