Advertisement
MateuszGrabarczyk

Student.py

Mar 29th, 2022
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. from User import *
  2.  
  3.  
  4. class Student(User):
  5. def __init__(self, id, name, lastname, login, password):
  6. super().__init__(name, lastname, login, password)
  7. self.issued_books = []
  8. self.id = id
  9.  
  10. def welcome(self):
  11. print("Welcome {} {}, right now you have {} issued books.".format(self.name, self.lastname, len(self.issued_books)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement