Answers for "how to print 2 list in python as table"

0

how to print 2 list in python as table

a = ['a', 'b', 'c']
b = ['1', '0', '0']
res = "\n".join("{} {}".format(x, y) for x, y in zip(a, b))
Posted by: Guest on May-20-2020

Code answers related to "how to print 2 list in python as table"

Python Answers by Framework

Browse Popular Code Answers by Language