Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print two lists side by side in python

# credit to the Stack Overflow user in the source link

a = ['a', 'b', 'c']
b = ['1', '0', '0']
res = "
".join("{} {}".format(x, y) for x, y in zip(a, b))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #lists #side #side #python
ADD COMMENT
Topic
Name
4+2 =