#!venv/bin/python3 class Ingredient(object): def __init__(self, amount, measure, ingredient): self.amount = amount self.measure = measure self.ingredient = ingredient def __str__(self): return (self.amount + ' ' + (self.measure + ' ' + self.ingredient).strip()).strip()