title: Str.format with a list to create filter
body: <p>Somewhat simple question with many similar ones out there, but I cannot seem to find what I am looking for. I am trying to filter a list of images in a dbc.Carousel via an int list of location numbers. Any image title that starts with a given number will correlate to a location. So, initially, I would want all images that start with 1, 2, 3, 4, OR 5. I have:</p>
  <pre class="lang-py prettyprint-override"><code>def imageFilter(locFilter):
      
      locFilter = list(map(int, locFilter))
      #locFilter = [1, 2, 3, 4, 5]
      itemFilter = [
              {'key': k ,'src':'data:image/jpg;base64,{}'.format(v.decode())} \
                  for k,v in imageEncodeDict.items() \
                  # Everything works above here. .format with single numbers works too
                  if k.startswith(&quot;Spot CAM {}&quot;.format(locFilter))
          ]
      return [dbc.Carousel(controls=True, indicators=True, interval=None, style=img_style, items = itemFilter)]
  </code></pre>
  <p>Unpacking the list with <code>*locFilter</code> DOES NOT work. How can I pass a list to work as a filter for str.format?</p>