title: How to write an f-string on multiple lines without introducing unintended whitespace?
body: <p>Consider the following code snippet:</p>
  
  <pre><code>name1 = "Nadya"
  name2 = "Jim"
  
  def print_string():
      string = f"{name1}\n\
  {name2}"
      print(string)
  
  print_string()
  </code></pre>
  
  <p>which produces</p>
  
  <pre><code>Nadya
  Jim
  </code></pre>
  
  <p>This works, but the 'break' in indentation on the second line of the <code>string</code> definition looks ugly. I've found that if I indent the <code>{name2}</code> line, this indentation shows up in the final string.</p>
  
  <p>I'm trying to find a way to continue the f-string on a new line and indent it without the indentation showing up in the final string. Following something similar I've seen for ordinary strings, I've tried</p>
  
  <pre><code>name1 = "Nadya"
  name2 = "Jim"
  
  def print_string():
      string = f"{name1}\n"
               f"{name2}"
      print(string)
  
  print_string()
  </code></pre>
  
  <p>but this leads to an <code>IndentationError: unexpected indent</code>. Is what I am trying possible in another way?</p>