Skip to content

Commit aa584cc

Browse files
committed
Fixeing laptop os name in print
1 parent 86a77dd commit aa584cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laptop_allocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def allocate_laptops(people: List[Person], laptops: List[Laptop]) -> Dict[Person
7474

7575
def print_final_allocation(allocated_history:dict[Person,Laptop]) :
7676
for name , laptop in allocated_history.items() :
77-
print(f"{name:<10} : Laptop Id {laptop.id:<3} - OS({laptop.operating_system}) ")
77+
print(f"{name:<10} : Laptop Id {laptop.id:<3} - OS({laptop.operating_system.name}) ")
7878
print(f"Total sadness is : {sadness}")
7979

8080
print_final_allocation(allocate_laptops(people,laptops))

0 commit comments

Comments
 (0)