title: Python math operation until 'n' is pressed
body: <p>I wanted to create python script that will help me with my math problem. I have formula that I want to use on my problem, I just wanted to save some time because I need to calculate with different values for at least 20 times.</p>
  <p>I created this function:</p>
  <pre><code>def vypocet():
      y2 = float(input(&quot;Zadaj hodnotu y2: &quot;))
      y1 = float(input(&quot;Zadaj hodnotu y1: &quot;))
      x2 = float(input(&quot;Zadaj hodnotu x2: &quot;))
      x1 = float(input(&quot;Zadaj hodnotu x1: &quot;))
      x = float(input(&quot;Zadaj hodnotu x: &quot;))
      vysledok = (y2-y1)/(x2-x1)*(x-x1)+y1
      return vysledok
  </code></pre>
  <p>It is working as expected.</p>
  <p>Now I need to create a loop, that will repeat this calculation until User will press &quot;N&quot;.
  I need to create one more var, that will be expecting 'Y' or 'N' from user and after this input it will end or repeat calculation.</p>
  <p>I tried while cycle, but I was not succesfull.</p>
  <p>Please help me.
  Thanks!</p>