This commit is contained in:
Igor
2026-07-18 20:05:03 +03:00
parent ee235ece10
commit 2e823d96af
6 changed files with 75 additions and 6 deletions
+1
View File
@@ -19,4 +19,5 @@ def count_chars(text):
def get_top_tuples(my_list):
return sorted(my_list.items(), key=lambda x: x[1], reverse=True)
print(get_top_tuples(count_chars(safe_input())))