LoginSignup
0
2

More than 3 years have passed since last update.

zip関数の使い方

Last updated at Posted at 2020-02-20

zip関数とは

pythonの組み込む関数であり複数のリストやタプルの要素をまとめる関数

使用例

a1=[1,2,3]
b1=["a","b","c"]
for a,b in zip(a1,b1):
    print(a,b)
実行結果
1 a
2 b
3 c
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2