File size: 689 Bytes
16c6d7c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
class UserDetail:
def __init__(self, student_id, student_name, dob, class_std, section,
father_name, mother_name, address, phone, email, blood_group):
self.student_id = student_id
self.student_name = student_name
self.dob = dob
self.class_std = class_std
self.section = section
self.father_name = father_name
self.mother_name = mother_name
self.address = address
self.phone = phone
self.email = email
self.blood_group = blood_group
def __str__(self):
return f"Student ID: {self.student_id}, Name: {self.student_name}, Class: {self.class_std}-{self.section}"
|