title: how can I write a if condition to break out of for loop in Python
body: <pre><code>    for method,proprties,body in message:
  
          logger.info(proprties)
          logger.info(method)
          logger.info(body)
  
          self.channel.basic_ack(proprties.timestamp)
          k=proprties.timestamp
          logger.info(k)
  #k = 1463761209429 
  #k = 1463761194158  
  #k = 1463756480546  
  </code></pre>
  
  <p>I want to come out of this for loop if k contains 1463761209, I don't care about the last three digits just match me the first 10 digit and come out.</p>
  
  <pre><code># Escape out of the loop 
          if k == ??:
              break
  </code></pre>
  
  <p>I want to write a if condition to break out of loop </p>