Skip to content

Commit c385378

Browse files
committed
updated choices to sample to ensure unique OS preferences
1 parent 9d05e3c commit c385378

3 files changed

Lines changed: 157 additions & 230 deletions

File tree

‎implement-laptop-allocation/laptop_allocation.py‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ class Laptop:
2626

2727
# ----- Functions
2828
def allocate_laptops(people: list[Person], laptops: list[Laptop]) -> dict[Person, Laptop]:
29+
print("allocating laptops...")
2930
return
30-
# ----- Data
31-
laptops = [
32-
Laptop(id=1, manufacturer="Dell", model="XPS", screen_size_in_inches=13, operating_system=OperatingSystem.ARCH),
33-
Laptop(id=2, manufacturer="Dell", model="XPS", screen_size_in_inches=15, operating_system=OperatingSystem.UBUNTU),
34-
Laptop(id=3, manufacturer="Dell", model="XPS", screen_size_in_inches=15, operating_system=OperatingSystem.UBUNTU),
35-
Laptop(id=4, manufacturer="Apple", model="macBook", screen_size_in_inches=13, operating_system=OperatingSystem.MACOS),
36-
]
31+

0 commit comments

Comments
 (0)