Advertisement
MateuszGrabarczyk

Book.py

Mar 29th, 2022
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. class Book:
  2. def __init__(self, id, author, publication_year, title, rating, is_issued=False):
  3. self.id = id
  4. self.author = author
  5. self.publication_year = publication_year
  6. self.title = title
  7. self.rating = rating
  8. self.is_issued = is_issued
  9.  
  10. def print_details(self):
  11. print("{} {} {} {} {}".format(self.id, self.author, self.publication_year, self.title, self.rating))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement