title: Python converter - I'm stuck
body: <p>I'm making a currency converter. The converter needs a min-range and max-range where the converter will ask you to change the ranges to able to convert the currency if the value of currecy is above or under those ranges. For example if the user sets the ranges between min-range 3 and max-range 7, he can only convert if the currency value is between 3 and 7.</p>
  
  <p>There will be converters for several types of currency, which is why I'm using a second "range function" and variables for "inputtext" etc.</p>
  
  <p>Most of it seem to work, as the "range" function seem to pick up the min-range, max-range and answer values etc. But I cant find a way to return it back to the currency_convert(). I've tried changing the values in range() to zero before trying to set new values for them, lists, loops and everything. Currency_convert() still shows the same currency value after trying to change it in range(). How do I send the "answer" back to currency_convert()? Do i have to make a "answer2" in range() or something?</p>
  
  <p>Any ideas what I have done wrong and what to do?</p>
  
  <p>This is how the part of the script looks like atm:</p>
  
  <pre><code>def range(min_range, max_range, answer, inputtext): 
    if answer &gt; min_range and answer &lt; max_range:
      return
    else:
      answer = 0
      min_range = input("Set a min range for conversion: ")
      max_range = input("Set a max range for conversion: ")
      answer = input(inputtext)
      Return answer (?)
  
  
  
  def currency_convert():
    min_range = input("min range: ")
    max_range = input("max range: ")
  
    inputtext = "How many dollars to convert: "
    answer = input(inputtext)
    range(min_range, max_range, answer, inputtext)
  
    sek = answer * 3
    print("%d is the same as" % (sek))
  </code></pre>