2022-10-11 リストのソート Python #お題 リストの中身を並び替える #入力 a = [8, 1, 5, 3, 6] #出力 [1, 3, 5, 6, 8] #コード sorted(a) ※逆順の場合 sorted(weapons,reverse=True)