title: Find how many lines in string
body: <p>I am creating a python movie player/maker, and I want to find the number of lines in a multiple line string. I was wondering if there was any built in function or function I could code to do this:</p>
  
  <pre><code>x = """
  line1
  line2 """
  
  getLines(x)
  </code></pre>