title: how to use for loop for multiple inputs
body: <p>This is my code where I want to apply the for loop to check the best values result.   I want to apply the for loop for num_ants = 1000 , so I want to test the best values for the values 500,600, 700, 800,900  and like this for other inputs.</p>
  
  <pre><code> num_ants = int(input("Please enter the number of ants (1000 recommended): "))
      if num_ants &lt;= 0:
          quit("value entered for number of ants is non-positive")
  
  
  min_cases_per_rule = int(input("Please enter the minimum number of cases per rule (10 recommended): "))
  if min_cases_per_rule &lt;= 0:
      quit("value entered for minimum number of cases per rule is non-positive")
  
  
  
  max_uncovered_cases = int(input("Please enter the maximum number of uncovered cases in the training set (10 recommended): "))
  if max_uncovered_cases &lt; 0:
      quit("value entered for maximum number of uncovered cases is non-zero")
  
  
  
  
  num_rules_converge = int(input("Please enter the number of rules used to test convergence of the ants (40 recommended): ")) #10
  if num_rules_converge &lt;= 0:
      quit("value entered for number of rules used to test convergence of the ants is non-positive")
  </code></pre>