Python3 List / dictionary memo

Make a note so as not to forget it.

About the type

#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

Python3 List / dictionary memo
[Python] Memo dictionary
[Memo] Python3 list sort
Python list, for statement, dictionary
Python memo
Python memo
python memo
Python memo
[Python] list
Python dictionary
[Python] dictionary
Python dictionary
Python memo
Python memo
Python basics: list
python beginner memo (9.2-10)
python beginner memo (9.1)
[Python] Dictionary (hash)
Python basics: dictionary
★ Memo ★ Python Iroha
[Python] EDA memo
Python 3 operator memo
Python> Comprehension / Comprehension> List comprehension
[My memo] python
Python3 metaclass memo
[Python] Basemap memo
Python beginner memo (2)
Python list manipulation
[Python] Numpy memo
Python numbers, strings, list types (Python learning memo ①)
List of python modules
Python> list> extend () or + =
Python class (Python learning memo ⑦)
My python environment memo
Python Basic Course (7 Dictionary)
python openCV installation (memo)
Python module (Python learning memo ④)
Visualization memo by Python
Python list comprehension speed
Filter List in Python
Python test package memo
python unittest assertXXX list
[Python] Memo about functions
Basic operation list of Python3 list, tuple, dictionary, set
List memo writing part 2
python regular expression memo
Binary search (python2.7) memo
[My memo] python -v / python -V
Python Tips (my memo)
[Python] Memo about errors
OpenCV3 Python API list
Python error list (Japanese)
DynamoDB Script Memo (Python)
Python Dictionary Beginner's Guide
List find in Python
Python basic memo --Part 2
python recipe book Memo
Basic Python command memo
List operation memo writing
Python OpenCV tutorial memo
Python basic grammar memo