title: What does a semicolon do?
body: <p>I got a function online to help me with my current project and it had semicolons on some of the lines. I was wondering why? Is it to break the function?</p>
  
  <pre><code>def containsAny(self, strings=[]):
      alphabet = 'abcdefghijklmnopqrstuvwxyz0123456789'
      for string in strings:
          for char in string:
              if char in alphabet: return 1;
      return 0;
  </code></pre>
  
  <p>The function I got online with little modification:</p>
  
  <pre><code>for string in strings:
      for char in string:
          if char in alphabet: return 1;
  </code></pre>
  
  <p>Is the above saying the following?</p>
  
  <pre><code>if char in alphabet:
      return 1
      break
  </code></pre>