title: Join lists with dictionaries for given interval
body: <p>I have the following - maybe very simple - question.</p>
  <p>I have a dictionary with several keys and values. For my relevant key, i have 10 entries, but i only need the entries 3-6 to be part of my string (simplified, in reality i have 1000 entries).</p>
  <p>So far my code is this, but it plots me all 10 keys. I would like to make the program slice the list and print only elements 3-6 from <code>mykey</code>.</p>
  <pre><code>mydict = {&quot;key1&quot;: &quot;red&quot;,
            &quot;key2&quot;: &quot;grass&quot;,
            &quot;key3&quot;: 2020,
            &quot;mykey&quot;: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}
  
  string = &quot;, &quot;.join(f'{q:}' for q in mydict[&quot;mykey&quot;]) + &quot;\n&quot;
  </code></pre>