Skip to content

Instantly share code, notes, and snippets.

@Isaac3N
Last active Jan 12, 2022
Embed
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
self.id = id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment