You can use map
and zip
for this:
>>> data = [['Ankur', 'Avik', 'Kiran', 'Nitin'], ['Narang', 'Sarkar', 'R', 'Sareen']]
>>> list(map(' '.join, zip(*data)))
['Ankur Narang', 'Avik Sarkar', 'Kiran R', 'Nitin Sareen']
More Related Contents:
- Creating multiple python dictionaries from a file
- Invalid Syntax and I don't know why
- How do I print certain parts of an array inside an array in python 3
- Python regex find all overlapping matches?
- Paramiko “Unknown Server”
- How to use Python to login to a webpage and retrieve cookies for later usage?
- tkinter gui layout using frames and grid
- How do I convert a currency string to a floating point number in Python?
- Unpickling a python 2 object with python 3
- Changing file permission in Python
- Pythonic way to check if a file exists? [duplicate]
- Deleting multiple columns based on column names in Pandas
- Django signals vs. overriding save method
- Python : When is a variable passed by reference and when by value? [duplicate]
- Fastest way to sort each row in a pandas dataframe
- python multiple inheritance passing arguments to constructors using super
- can’t import tensorflow in python, windows 10 64 bit
- FileNotFoundError: [Errno 2] No such file or directory: ‘geckodriver’: ‘geckodriver’ with GeckoDriver and Python in MAC OS
- Returning Variables in Functions Python Not Working Right
- How to access the local Django webserver from outside world
- Get folder name of the file in Python
- Where does pip install its packages?
- Python version
- How to plot multiple bars grouped
- How to run a python script from IDLE interactive shell?
- Difference between open and codecs.open in Python
- What does “table” in the string.translate function mean?
- Detecting thresholds in HSV color space (from RGB) using Python / PIL
- How to get number of affected rows in sqlalchemy?
- Can I send callbacks to a KerasClassifier?