-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp09.py
More file actions
38 lines (29 loc) · 1.19 KB
/
Copy pathp09.py
File metadata and controls
38 lines (29 loc) · 1.19 KB
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
28
29
30
31
32
33
34
35
36
37
38
from manufacturer import GenerateRequirementTreeHouse, RefineRequirementsTreeHouse, SendRequirementsArchitect, OrderParts, SendMessage, AssembleTreeHouse, CreateListOfPeople, SendInvitations, BuySnacks
def build_tree_house():
# Generate requirements
generate_req = GenerateRequirementTreeHouse()
part_list = generate_req.call()
# Send requirements to architect
send_req_architect = SendRequirementsArchitect()
send_req_architect.call(part_list)
# Refine requirements
refine_req = RefineRequirementsTreeHouse()
refined_part_list = refine_req.call(part_list)
# Order parts
order_parts = OrderParts()
order_parts.call(refined_part_list)
# Send messages to friends to build the house
send_message = SendMessage()
send_message.call()
# Assemble tree house
assemble_tree_house = AssembleTreeHouse()
assemble_tree_house.call(refined_part_list)
# Create list of people for the party
create_list_of_people = CreateListOfPeople()
people = create_list_of_people.call()
# Send invitations
send_invitations = SendInvitations()
send_invitations.call(people)
# Buy snacks
buy_snacks = BuySnacks()
buy_snacks.call(people)