@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic
(No. 1515 / 12833)
You can use the dict() function to convert two-value sequences into a dictionary.
本のコードを元にサンプルを作ってみた。
lol = [ [ 'pi', '3.1415'], ['napier', '2.71828'], ['avogadro', '6.022 x 10^23'] ]
print(lol)
mydict = dict(lol)
print(mydict['avogadro'])
結果
[['pi', '3.1415'], ['napier', '2.71828'], ['avogadro', '6.022 x 10^23']]
6.022 x 10^23
ファイル変換とかで使うだろうか。