title: Replace list name with variable
body: <p>I have several dictionaries for each day of the week, Sunday <code>[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]</code>, Monday <code>[&quot;d&quot;, &quot;f&quot;, &quot;g&quot;]</code>, and so on, they are located in another script (xscript.py), and I would want to print them out depending on the day of the week I'm currently on, something like this:</p>
  <pre><code>import datetime
  import xscript
  
  def print_daily_list():
      day_of_week = datetime.datetime.today().weekday()
      print(xscript.day_of_week)
  </code></pre>
  <p>I wouldn't want to create a bunch of <code>if</code> statements to replace <code>day_of_week</code> with &quot;Sunday&quot; or &quot;Monday&quot; depending on the day.</p>