Skip to content

Instantly share code, notes, and snippets.

Last active Jan 12, 2022
What would you like to do?
Example of a regular class in python
class Product():
def __init__(self, title, body, price, ratings, published, id):
self.title = title
self.description = body
self.price = price
self.ratings = ratings
self.published = published = id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment