From bcae4d8d811fee4bf1f0a651886fe9b5ba777de2 Mon Sep 17 00:00:00 2001 From: msquarex <166975806+msquarex@users.noreply.github.com> Date: Sun, 14 Apr 2024 17:02:42 +0530 Subject: [PATCH] #2 enhance #2 --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2920e9f..eb3c3ad 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,11 @@ from random import randint def main(): + sorted_cards = sorted(cards.items(), key=lambda x: x[1]) + print("Top 5 Hardest Cards:") + for idx, (card, value) in enumerate(sorted_cards[:5], start=1): + print(f"{idx}. {card}: {value}") + slots = (list(cards.items()), [], []) box_chance_mul = [4, 2, 1] while True: @@ -39,4 +44,4 @@ def main(): break if __name__ == "__main__": - main() \ No newline at end of file + main()