-
-
Save Isaac3N/ff8ab01e183a6626bcc678199ded8f87 to your computer and use it in GitHub Desktop.
Example of a regular class in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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