Skip to content
Open

exo1 #216

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions exo1/exo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
Write the code for this class, with the appropriate constructor.
Example of code using the class: i = Item(10, 20)
"""
class Item:
def __init__(self, price, weight):
self.price = price
self.weight = weight