title: Add space before reading an input in python
body: <p>I have a python program which works as a calculator.</p>
  <pre class="lang-py prettyprint-override"><code>import re
  
  
  value = 0
  run = True
  
  while run:
      if value == 0:
          equation = input('Enter the equation ')
      else:
          equation=input(str(value))
          # print(equation + ' ')
      if equation == 'quit':
              run = False
      else:
          equation = re.sub(&quot;[a-zA-Z&quot;&quot;]&quot;,'',equation)
          if value ==0:
              # equation=eval(equation)
              value=eval(equation)
          else:
              value=eval(str(value)+equation)
              print(equation + ' ')
  </code></pre>
  <p>The program works without problem , but when reading the input after the first iteration , the terminal is as below</p>
  <pre class="lang-sh prettyprint-override"><code>python3 file.py
  Enter the equation 10+10
  20+30
  </code></pre>
  <p>The next input can be provided next to 20. I want to add a space before reading the input , so the output will be as shown below</p>
  <pre class="lang-sh prettyprint-override"><code>python3 file.py
  Enter the equation 10+10
  20 +30
  </code></pre>
  <p>How can I add a space before reading the next input so the cursor will create a space</p>
  <p>Example</p>
  <pre class="lang-py prettyprint-override"><code>input=input('Enter the input ')
  </code></pre>
  <p>Python Version : 3.7.7</p>