Professional Documents
Culture Documents
Gix
Gix
Gix
def __init__(self):
self.farmers = {}
self.buyers = {}
self.crops = {}
self.farmers[name] = crop
self.buyers[name] = crop
self.crops[name] = quantity
self.crops[crop_name] -= quantity
else:
print("Transaction failed: either the farmer or buyer doesn't exist, the crop doesn't match, or the
quantity exceeds the available quantity.")
gix = GIX()