title: Break outside of Loop python
body: <p>I have following code in python but it's saying break outside of loop, when clearly its within the if statement in the loop</p>
  
  <pre><code>import json
  c=0
  with open("test.json") as json_file:
          c+=1
          if(c&gt;10):
                  break
          json_data = json.load(json_file)
          print(json_data)
  </code></pre>