'How to append two lists in order into a text file?

Say I have two lists:

a = [1, 2, 3, 4]

b = [hello, how, iz, life]

How can I make a new list c that takes each element in list a and matches it in order to an element in list b? I want the text file to look something like this:

1 hello
2 how
3 iz
4 life

I attempted c.append(a,b), but I got the following error:

TypeError: list.append() takes exactly one argument (2 given)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source