Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aoshiman/633e1ad76c7b6c0e51f1e7f387822d57 to your computer and use it in GitHub Desktop.
Save aoshiman/633e1ad76c7b6c0e51f1e7f387822d57 to your computer and use it in GitHub Desktop.
行「もしかして」列「わたしたち」「入れ替わってるー!?」
In [4]: '行「もしかして」列「わたしたち」「入れ替わってるー!?」'
In [5]: pokemon = [['ピカチュウ', 'ポッポ', 'ヒトカゲ'],
...: ['でんき', 'ひこう', 'ほのお'],
...: ['でんきショック', 'たいあたり', 'ニトロチャージ']]
In [6]: for x in zip(*pokemon):
...: print(x)
...:
('ピカチュウ', 'でんき', 'でんきショック')
('ポッポ', 'ひこう', 'たいあたり')
('ヒトカゲ', 'ほのお', 'ニトロチャージ')
In [7]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment