title: Python] combine two text files into one (line by line)
body: <p>I'm new to python. What I'm trying to do is combing file 'a' and file 'b' into one file LINE by LINE.</p>
  
  <p>For example, </p>
  
  <p><code>text file a = a ("\n") b("\n") c</code> </p>
  
  <pre><code>text file b = 1("\n")2("\n") 3
  </code></pre>
  
  <p>text file new will contain <code>a 1("\n") b 2("\n") c 3</code></p>
  
  <pre><code>def main():
    f1 = open("aaa.txt")
    f2 = f1.readlines()
    g1 = open("bbb.txt")
    g2 = g1.readlines()
    h1 = f2+g2
    print(h1)
  </code></pre>
  
  <p>I'm so sorry this is my first time using stackoverflow ..</p>