0
0

More than 3 years have passed since last update.

Python3のリスト・辞書型の書き方

Posted at

型について

# List型
  sampleA = [[name,"Sato"],[age,1]], [[name,"Mori"],[age,20]]

# Dictionary型
  sampleB = {"apple":1, "orange":2}

# 型を調べる
  type(sampleA)
  type(sampleB)

#List型からKey/Valueを取り出す
  for index, value in enumerate(sampleA)

#辞書型からKey/Valueを取り出す
  for index, value in items(sampleA)
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