Skip to content

Instantly share code, notes, and snippets.

@Isaac3N
Last active January 12, 2022 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Isaac3N/ff8ab01e183a6626bcc678199ded8f87 to your computer and use it in GitHub Desktop.
Save Isaac3N/ff8ab01e183a6626bcc678199ded8f87 to your computer and use it in GitHub Desktop.
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