-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbread_factory.py
More file actions
32 lines (22 loc) · 840 Bytes
/
bread_factory.py
File metadata and controls
32 lines (22 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ingredient1 = 'water'
ingredient2 = 'flour'
def make_dough(ingredient1, ingredient2):
if (ingredient1 == 'water' and ingredient2 == 'flour') or (ingredient1 == 'flour' and ingredient2 == 'water'):
return 'dough'
else:
return 'not dough'
def bake_bread(dough):
if dough =='baked':
return 'bread baked'
else:
return 'bread not baked'
def wholewheat(ingredient1, ingredient2):
if (ingredient1 == 'water' and ingredient2 == 'flour') or (ingredient1 == 'flour' and ingredient2 == 'water'):
return 'factory downtime more effective and new markets'
else:
return 'factory downtime not more effective and no new markets'
def wholewheat_sell(dough):
if dough=='baked':
return 'sell to niche clients'
else:
return 'cannot sell to niche clients'