title: How to remove a linebreak from getRandom?
body: <p>I am using Python 3 and Selenium. I am choosing a random line from a txt file with this code:</p>
  <pre><code>with open('surnames.txt') as fr:
      surnames = fr.readlines()
      surname = random.choice(surnames) if surnames else None
  </code></pre>
  <p>The problem is that Python always adds the line break so if I write:</p>
  <pre><code>print(surname + '@gmail.com')
  </code></pre>
  <p>This gets exported:</p>
  <pre><code>Peter
  @gmail.com
  </code></pre>
  <p>But I want it to be exported as following:</p>
  <pre><code>Peter@gmail.com
  </code></pre>
  <p>Do you maybe have a solution?</p>