Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Book:
- def __init__(self, id, author, publication_year, title, rating, is_issued=False):
- self.id = id
- self.author = author
- self.publication_year = publication_year
- self.title = title
- self.rating = rating
- self.is_issued = is_issued
- def print_details(self):
- print("{} {} {} {} {}".format(self.id, self.author, self.publication_year, self.title, self.rating))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement