title: Giving indentation or space error in python 3.6
body: <p><a href="https://i.stack.imgur.com/HhVn7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HhVn7.png" alt="getting indentation or space error in python 3"></a></p>
  
  <p>I am just trying to play a sound in the script</p>
  
  <p>The error I am getting</p>
  
  <blockquote>
    <p>"Inconsistent use of tabs and spaces in indentation".</p>
  </blockquote>
  
  <p>Code snippet:</p>
  
  <pre><code>    if flag &gt;= frame_check:
                      winsound.Beep(freq, duration)
                      cv2.putText(frame, "****************DANGER!****************", (10, 30),
                          cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
                      cv2.putText(frame, "****************DANGER!****************", (10,325),
                          cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
  
  </code></pre>