Make a note so as not to forget it.
#List type
sampleA = [[name,"Sato"],[age,1]], [[name,"Mori"],[age,20]]
#Dictionary type
sampleB = {"apple":1, "orange":2}
#Examine the type
type(sampleA)
type(sampleB)
#List type to Key/Extract Value
for index, value in enumerate(sampleA)
#From dictionary type to Key/Extract Value
for index, value in items(sampleA)
Recommended Posts