Search
 
SCRIPT & CODE EXAMPLE
 

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))
Comment

PREVIOUS NEXT
Code Example
Python :: how to get the first few lines of an ndarray 3d 
Python :: check missing dates in pandas 
Python :: km/h a m/s 
Python :: how to get an input into a list python 
Python :: roots of quadratic equation in python 
Python :: pandas read cell value by index and column name 
Python :: python timestamp to datetime 
Python :: matplotlib logarithmic scale 
Python :: python test is nan 
Python :: nohup python command for linux 
Python :: numpy item size 
Python :: seaborn bar plot dataset 
Python :: python check if two lists intersect 
Python :: how to get current date and time in python 
Python :: pandas merge certain columns 
Python :: random picker in python 
Python :: jaccard distance python 
Python :: divide a column value in pandas dataframe 
Python :: read excel file in python 
Python :: get all file in folder python 
Python :: reverse key order dict python 
Python :: matplotlib cheatsheet 
Python :: python chrome 
Python :: python how to convert csv to array 
Python :: how to find the datatype of a dataframe in python 
Python :: python assert 
Python :: read excel into dataframe python 
Python :: how to import file from another directory in python 
Python :: urllib urlretrieve python 3 
Python :: rotate 90 degrees clockwise counter python 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =