Skip to content

Commit dfc29a8

Browse files
committed
Adding a print statement to tell about greater chnaces of getting a laptop based on os
1 parent 842c004 commit dfc29a8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Sprint5/e-num.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,7 @@ def find_possible_laptops(laptops: List[Laptop], person: Person) -> List[Laptop]
8787
best_os = os
8888
best_count = count
8989

90-
print("Best OS:", best_os, "with", best_count, "laptops")
90+
print("Best OS:", best_os, "with", best_count, "laptops")
91+
if best_os != preferred_os:
92+
print(f"If you’re willing to accept {best_os.value}, "
93+
f"you’re more likely to get a laptop since there are {best_count} available.")

0 commit comments

Comments
 (0)