title: breaking if statement in python
body: <p>I want to break the if statement.</p>
  <p>My code is like this:</p>
  <pre><code>if a == 0 or d == 0:
      while a&gt;0:
          d=a//b
          c+=1
          a=d//b
          c+=1
      break
  </code></pre>
  <p>I got an error called <code>'break' outside loop</code> what can I do.</p>