scores = [30, 12, 45, 7, 24, 50] scores.sort(reverse=True) top = scores[:3] print(" ".join(str(n) for n in top))