Skip to content

Instantly share code, notes, and snippets.

View Godblesspelp's full-sized avatar

Godbless Pelpuo Godblesspelp

View GitHub Profile
import csv
class Item:
pay_rate = 0.85 #20% discount for customers
all = []
def __init__(self, name: str, price: float, quantity = 0):
# run validations for received arguments
assert price >= 0, f'price {price} must be positive or zero!'
assert quantity >= 0, f'quantity {quantity} must be positive or zero!'