title: if my condition false how to do a statement one time only in python
body: <p>is there any way to make this logic:</p>
  
  <p>I need to make a statement one time only if the condition is false as below:</p>
  
  <pre><code>while 1:
      statement1
      statement2
      if condition:                --condition is true here
            statement3
      else                         --condition is false here
            statement3            --I need to do this "statement3" one time only
      if another condition:
            break
  </code></pre>
  
  <p>what I mean that I need to send my data if speed > 3 else send my data only one time.</p>
  
  <p>any help, please</p>
  
  <p>I solved it. I just need to add extra "neverdone = True" to the solution of "Alex Martelli"</p>
  
  <pre><code> neverdone = True
   while 1:
      statement1
      statement2
      if condition:
           statement3
           neverdone = True
      elif neverdone:
           neverdone = False
           statement3
      if anothercondition:
          break
  </code></pre>
  
  <p>many thanks to Alex Martelli.</p>