title: How to make input prompt not appear for condition
body: <p>so i want this code to be like a 3 number calculator, but when the Y/N question is asked the question saying &quot;Enter a third number still shows up, sorry if its a dumb question here is the code:</p>
  <pre><code>num1 = float(input(&quot;Enter a number: &quot;))
  num2 = float(input(&quot;Enter a second number: &quot;))
  question = input(&quot;Would you like to add another number? Y/N &quot;)
  num3 = float(input(&quot;Enter a third number: &quot;))
  
  if question ==&quot;Y&quot;:
      print(num1 + num2 + num3)
  if question ==&quot;N&quot;: 
      print(num1 + num2 + num3
  </code></pre>