scores = []
choice = None
while choice != "0":
print(""""
рекорды
0 - выйти
1 - показать рекорды
2 - добавить рекорд
3 - удалить рекорд
4 - сортровать рекорд
""")
choice = input("ваш выбор: ")
print()
if choice == "0":
print("до свидание. ")
elif choice == "1":
print("рекорды: ")
for score in scores:
print(score)
elif choice == "2":
score == int(input("выпишите свой рекорд: "))
scores.append(score)
elif choice == "3":
score = int(input("какой из рекордов удалить?: "))
if score in scores:
scores.remove(score)
else:
print("результат", score, " не содержится в списке рекордов")
elif choice == "4":
scores.sort(reverse=True)