0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

paizaラーニング「辞書順に出力 2 Python3編」

Posted at

私の解答

li =  (input().split())
sorted_li = sorted(li)

for ele in sorted_li:
    print(ele)

解答例1

S = [0] * 5
values = input().split()
for i in range(5):
    S[i] = values[i]

sorted_S = sorted(S)

for s in sorted_S:
    print(s)

解答例2

S = [0] * 5
values = input().split()
for i in range(5):
    S[i] = values[i]

S.sort()

for s in S:
    print(s)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?