LoginSignup
1
1

More than 3 years have passed since last update.

Python学習

Last updated at Posted at 2020-01-20

Pythonの基礎・応用

リスト型・辞書型

  • 五十音を一文字ずつリスト型へ展開してみよう
"""
あいうえお
かきくけこ
さしすせそ
たちつてと
なにぬねの
はひふへほ
まみむめも
や ゆ よ
らりるれろ
わ   を
ん
"""
list = ['あ','い','う','え','お'...]
  • 五十音を'あ'からインデックスで引き当てられるように辞書型を作成してみよう
list = ['あ','い','う','え','お'...]
dict = {1:'あ',2:'い',3:'う',4:'え',5:'お'}
  • 五十音からインデックスを引き当てられるように辞書型を作成してみよう
list = ['あ','い','う','え','お'...]
dict = {'あ':1,'い':2,'う':3,'え':4,'お':5}

※社内学習向けに記載した記事を全体公開

1
1
1

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
1
1