From 6db1cebae808f740edf6ea149b8c20fc33de2916 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sun, 10 Dec 2023 16:47:58 +0530 Subject: [PATCH] took me a few months to figure this out (jeez im dumb) but by changing the less than sign to greater than in top 5, the list can be sorted in descending order :) --- assignment-14.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignment-14.py b/assignment-14.py index 40918fd..017a6f6 100644 --- a/assignment-14.py +++ b/assignment-14.py @@ -30,9 +30,9 @@ def bubble(): def top5(): for i in range(len(marks)): for j in range(0, len(marks)-i-1): - if marks[j]>marks[j+1]: + if marks[j]