title: How do I print a list after creating its name as a string?
body: <p>I have 3 lists and I want to print them with a function.</p>
  <pre><code>list1 = [1, 2, 3]
  list2 = [4, 5, 6]
  list3 = [7, 8, 9]
  
  def list(number):
      list = 'list' + str(number)
      for items in list:
      print(list)
  </code></pre>
  <p>The result I want is</p>
  <pre><code>list(1)
  1
  2
  3
  </code></pre>
  <p>How should I write my function so that I can print a list after creating the name of it (as shown above)? Thank you!</p>