title: Break outside the loop
body: <p>I am new to Python. I am trying to run the following code. But every time I try to run it, the IDE says that the break is outside the loop </p>
  
  <pre><code>catname = []
  
  print("Enter the name of the cats")
  
  name = input()
  
  if name == '':
  
     break
  
  catname = catname+[name]
  
  print("The cat Names are :")
  
  for catname in name:
  
      print(name)
  </code></pre>
  
  <p>Can you please help me?</p>
  
  <p>Thanks </p>