You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
313 B
12 lines
313 B
4 years ago
|
#!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()
|