title: How to print one time in for loop
body: <p>I am coding a program to find the Prime Number project for my school. I used function and for loop to do this project. My problem is my print statement is not working correctly. I want to print if it's prime or not just for one time. I know why it's repeating (bcz of for loop) but I want to know how to print one time. </p>
  
  <p>Ps </p>
  
  <pre><code>my else:
      print ("not prime")
  </code></pre>
  
  <p>it is not working, i don't why... If anyone help me that will be great. Here is my code:  </p>
  
  <hr>
  
  <pre><code>def printscrean(m):
      if m &gt; 0:
          print ("YES! It is a Prime Number \n")
          print (ASK, "MOD", i , "=", m)
      else:
          print ("not prime")
          return;
  
  ASK = int (input("YOUR NUMBER:")) 
  
  for i in range (2,ASK): 
      m= ASK%i 
      if (m == 0): 
          break
      printscrean(m)
  </code></pre>