Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. class Blog:
  2.     def __init__(self, title, author):
  3.         self.title = title
  4.         self.author = author
  5.         self.posts = []
  6.  
  7.     def __repr__(self):
  8.         return 'Test by Test Author (0 posts)'
  9.  
  10.     def create_post(self, title, content):
  11.         pass
  12.  
  13.     def json(self):
  14.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement