Post History
Python 2, 58 54 bytes lambda l:''.join(filter(None,sum(map(None,'',*l),()))) Try it online! Amazingly, shorter than my Python 3 answer! Uses this method to zip unequal-length lists and this me...
Answer
#2: Post edited
# [Python 2], 58 bytes- ```python
lambda l:''.join([c or''for c in sum(map(None,'',*l),())])- ```
- [Try it online!][TIO-ktp150iy]
- Amazingly, shorter than [my Python 3 answer](https://codegolf.codidact.com/posts/279434/284226#answer-284226)! Uses [this method to zip unequal-length lists](https://stackoverflow.com/a/11319079) and [this method to flatten the result](https://stackoverflow.com/a/952946).
- [Python 2]: https://docs.python.org/2/
[TIO-ktp150iy]: https://tio.run/##NY6xTgMxDIbn5imsLEloYGCs1EqIIjEgYGA7bgi5XM80iU@5tKJPf9S0DLbs7/@HbzzVgfL93K8/5@jSV@cgrpS6@ybMuvFARameCnjADNMh6eRG/Uo5WKXsTTRWG9OauYapTrCGRiwaucdM0oL0mENyfCU6YpCt5dRTF5jtKPZX9IwMeD6GUP6LTz9jdNlVpHwl25OLtIOH9xfuPh5ixeMlP79vxQ@udLIVrRCszE5s/ee2EouxYK4w1aKZGFiCgtvNeS2hv6D5Fw "Python 2 – Try It Online"
- # [Python 2], ~~58~~ 54 bytes
- ```python
- lambda l:''.join(filter(None,sum(map(None,'',*l),())))
- ```
- [Try it online!][TIO-ktp150iy]
- Amazingly, shorter than [my Python 3 answer](https://codegolf.codidact.com/posts/279434/284226#answer-284226)! Uses [this method to zip unequal-length lists](https://stackoverflow.com/a/11319079) and [this method to flatten the result](https://stackoverflow.com/a/952946).
- [Python 2]: https://docs.python.org/2/
- [TIO-ktp150iy]: https://tio.run/##NY4/T8MwEMXn@lOcvNihhoGxUishQGJAwMBWMpjEbg7su8h2K/rpQ0zKSffn/d4bbjyXgel28tuPKdj42VsIG6VuvhhJewzFJf3C5Ew@Rh3tuAilzFVojG7mmorLJcMW9mK1l99ILA3IDslFW6/IJ3SyNdXtuHeVHTj4C3rCCmq/Dy79Bx9/xmDJFmS6kIezDXyAu7fnmr0/hoKnxZ/la@oGm3rZilYIzwnqT4D0t/NGrMaEVCCXpCtpYA0KrnfzWINf0PQL "Python 2 – Try It Online"
#1: Initial revision
# [Python 2], 58 bytes ```python lambda l:''.join([c or''for c in sum(map(None,'',*l),())]) ``` [Try it online!][TIO-ktp150iy] Amazingly, shorter than [my Python 3 answer](https://codegolf.codidact.com/posts/279434/284226#answer-284226)! Uses [this method to zip unequal-length lists](https://stackoverflow.com/a/11319079) and [this method to flatten the result](https://stackoverflow.com/a/952946). [Python 2]: https://docs.python.org/2/ [TIO-ktp150iy]: https://tio.run/##NY6xTgMxDIbn5imsLEloYGCs1EqIIjEgYGA7bgi5XM80iU@5tKJPf9S0DLbs7/@HbzzVgfL93K8/5@jSV@cgrpS6@ybMuvFARameCnjADNMh6eRG/Uo5WKXsTTRWG9OauYapTrCGRiwaucdM0oL0mENyfCU6YpCt5dRTF5jtKPZX9IwMeD6GUP6LTz9jdNlVpHwl25OLtIOH9xfuPh5ixeMlP79vxQ@udLIVrRCszE5s/ee2EouxYK4w1aKZGFiCgtvNeS2hv6D5Fw "Python 2 – Try It Online"