LoginSignup
0
0

More than 5 years have passed since last update.

Pythonの配列のZip化

Posted at

names = ['Jenny', 'Alexus', 'Sam', 'Grace']

dogs_names = ['Elphonse', 'Dr. Doggy DDS', 'Carter', 'Ralph']

names_and_dogs_names = zip(names, dogs_names)

print(list(names_and_dogs_names))

↑inputはzipだが、printするときはlistで行う

0
0
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
0