title: "unexpected unindent" for correct indentation?
body: <p>trying to make an autoclicker in python, not going so well. once i think i finally got it right it says <code>unexpected unindent.</code></p>
  
  <p>indentation seems correct though? i don't see whats wrong.</p>
  
  <p>also, i would love if you guys give me recommendations on how to make my code better, as i am a beginner in this :/</p>
  
  <pre><code>import pyautogui, mouse, keyboard, sys
  
  delay=0.01
  
  while True:
      try:
          if keyboard.is_pressed("q"):
              sys.exit()
  def left_mouse():
      while True:
          pyautogui.click()
          pyautogui.delay=delay
  mouse.on_click(left_mouse)
  </code></pre>
  
  <p>in IDLE the red error indicator shows on the right side of sys.exit()
  doesn't seem to be a problem there though?</p>