title: Print() to previous line?
body: <p>I need command that writes to previous line, like print() without \n. </p>
  
  <p>Here is some example code:</p>
  
  <pre><code>a=0
  
  print("Random string value")
  
  if a==0:
      print_to_previous_line("is random")
  </code></pre>
  
  <p>and output</p>
  
  <pre><code>Random string value is random
  </code></pre>
  
  <p>i know that i can do like print("string", value) to use multipile different things in same print command, but that is not the answer. Reason is too messy to be explained here, but this "print to previous line" will be exactly right answer. So what would it be in reality?</p>