title: Can two infinite loops be ran at once?
body: <p>I want to be able to have two <code>while True</code>loops running at the same time.
  Would this be possible?</p>
  
  <p>I am extremely new to Python, so I do not know how to get round this problem.</p>
  
  <p>This is the code I made:</p>
  
  <pre><code>import time
  
  def infiniteLoop():
      while True:
          print('Loop 1')
          time.sleep(1)
  
  infiniteLoop()
  
  while True:
      print('Loop 2')
      time.sleep(1)
  </code></pre>
  
  <p>Right now, it just prints a 'Loop 1'</p>
  
  <p>Thanks in advance</p>