title: Printing Prime Numbers within Boundries
body: <p>I 'm trying to print out prime numbers in a range with bool structure.</p>
  
  <pre><code>def get_boundries_from_user():
      upper_boundary = input("Enter upper boundary please:\n")
      lower_boundary = input("Enter lower boundary please:\n")
      return upper_boundry,lower_boundary
  
  def print_prime_numbers():
      upper_boundry,lower_boundry = get_boundries_from_user()
      upper_boundry += 1
      if (lower_boundary&lt;0 or upper_boundary&lt;0):
          print "Negative values cannot be prime numbers"
          return
      for i in range(lower_boundary,upper_boundary):
          prime = True
          for k in range(2,i):
              if (i%k==0):
                  prime = False
                  if prime:
                      print i
  
  print_prime_numbers()
  </code></pre>
  
  <p>Where am I mistaken?Can you explain the logic of your answer along with it?</p>