title: String format for dictionary with f-strings
body: <p>I have a dictionary and I want to print the key and values of this in f-strings format.</p>
  <p><strong>Sample 1:</strong></p>
  <pre><code>dic = {'A': 1, 'B': 2}
  Output: &quot;This is output A:1 B:2&quot;
  </code></pre>
  <p><strong>Sample 2:</strong></p>
  <pre><code>dic = {'A': 1, 'B': 2, 'C': 3}
  Output: &quot;This is output A:1 B:2 C:3&quot;
  </code></pre>
  <p>I would like to request a general answer so that I could add more key-value pairs.</p>