運動会のチームが (team, points) でメモされています。standings(teams) を書いて、得点の多い順に並べましょう。得点が同じなら、チーム名をアルファベット順にします。チーム名を返し、チームがなければ [] です。
standings([("Red", 6), ("Blue", 9), ("Gold", 6)])→['Blue', 'Gold', 'Red']standings([])→[]def standings(teams):
# ここにコードを書く:タプルを返す key。マイナスにした得点、次に名前
ordered = teams
return [name for name, points in ordered]
実行すると例で試せます。よさそうなら提出しましょう。