Created
October 16, 2016 04:13
-
-
Save aoshiman/633e1ad76c7b6c0e51f1e7f387822d57 to your computer and use it in GitHub Desktop.
行「もしかして」列「わたしたち」「入れ替わってるー!?」
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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