From 7dd00bdf8bc5b1ce567727f33507fabb3783f6fa Mon Sep 17 00:00:00 2001 From: PrianshuKumarSahu Date: Mon, 5 Oct 2026 15:53:16 +0530 Subject: [PATCH 1/4] issue solved by prianshu --- python-open-source-challenge/issue-17.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-open-source-challenge/issue-17.py b/python-open-source-challenge/issue-17.py index 73c6048..f3128ff 100644 --- a/python-open-source-challenge/issue-17.py +++ b/python-open-source-challenge/issue-17.py @@ -19,7 +19,7 @@ def summarize_orders(orders): quantity = order["quantity"] price = order["price"] # TODO: Check how each line contributes to the bill. - total += price + total += price * quantity # TODO: Check how repeated item orders are combined. quantities[item] = quantities.get(item, 0) + quantity # TODO: Check how an empty order list is handled. From a98c5dbb85ca748759b9604fb0f3ea9c87b414ba Mon Sep 17 00:00:00 2001 From: PrianshuKumarSahu Date: Mon, 5 Oct 2026 16:10:13 +0530 Subject: [PATCH 2/4] issue solved by prianshu(32) --- python-open-source-challenge/issue-32.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-open-source-challenge/issue-32.py b/python-open-source-challenge/issue-32.py index 8b4646f..f492362 100644 --- a/python-open-source-challenge/issue-32.py +++ b/python-open-source-challenge/issue-32.py @@ -16,11 +16,11 @@ def subject_extremes(students): for student in students: for subject, mark in student["marks"].items(): # TODO: Check how both ends of the subject range are initialized. - bounds = subjects.setdefault(subject, [0, mark]) + bounds = subjects.setdefault(subject, [mark, mark]) # TODO: Check how a new high mark updates the range. - bounds[0] = min(bounds[0], mark) + bounds[0] = max(bounds[0], mark) # TODO: Check how a new low mark updates the range. - bounds[1] = max(bounds[1], mark) + bounds[1] = min(bounds[1], mark) # TODO: Check the order and meaning of each returned bound. return subjects From 6dd57db888bcbc3693cd8dcceda69806cec50265 Mon Sep 17 00:00:00 2001 From: PrianshuKumarSahu Date: Mon, 5 Oct 2026 16:27:56 +0530 Subject: [PATCH 3/4] issue solved by prianshu(57) --- python-open-source-challenge/issue-57.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-open-source-challenge/issue-57.py b/python-open-source-challenge/issue-57.py index 3a7a355..fb0a1a7 100644 --- a/python-open-source-challenge/issue-57.py +++ b/python-open-source-challenge/issue-57.py @@ -20,7 +20,7 @@ def mobile_charges(usages): # TODO: Check the data charge included in each record. cost += usage["data_gb"] * 2 # TODO: Check how multiple records for one user are accumulated. - charges[user] = charges.get(user, 0) - cost + charges[user] = charges.get(user, 0) + cost # TODO: Check that users with no usage aren't fabricated. return charges From d21b6bd852f80a51b64076792f9526f1e7d5c38b Mon Sep 17 00:00:00 2001 From: PrianshuKumarSahu Date: Mon, 5 Oct 2026 16:39:22 +0530 Subject: [PATCH 4/4] issue solved by prianshu(74) --- python-open-source-challenge/issue-74.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-open-source-challenge/issue-74.py b/python-open-source-challenge/issue-74.py index a70948d..676472f 100644 --- a/python-open-source-challenge/issue-74.py +++ b/python-open-source-challenge/issue-74.py @@ -23,7 +23,7 @@ def attendance_report(records, minimum_percent): present[student] = present.get(student, 0) + 1 percentages = {student: present.get(student, 0) / total * 100 for student, total in counted.items()} # TODO: Check which students fall below the requested threshold. - below = [student for student, percent in percentages.items() if percent > minimum_percent] + below = [student for student, percent in percentages.items() if percent < minimum_percent] # TODO: Check that percentages for all students are returned. return percentages, below