title: TypeError: take_quiz() missing 1 required positional argument: 'database'
body: <p>I am new to programming and I am trying to return a dictionary from one function and use it in another, however I keep getting this same error as said in the title. Here is my code:</p>
  
  <pre><code>def read_qa(filename = 'data.csv'):
      database = {}
      f_in = open(filename, 'r')
      for line in f_in:
          line_list = line.strip().split(',')
          question = line_list[0]
          answers = line_list[1:]
          database[question] = answers
      f_in.close()
      return database
  
  def take_quiz(database):
      name = input("Enter your name: ")
      num_questions = eval(input("How many questions?: "))
      if num_questions &lt; len(database):
          print('The quiz will have', num_questions, 'questions.')
      else:
          print('The quiz will have', len(database), 'questions.')
      print()
  
  read_qa()
  take_quiz()
  
  
  
  Error:
  Traceback (most recent call last):
    File "/Users/BA/PycharmProjects/p/b.py", line 22, in &lt;module&gt;
      take_quiz()
  TypeError: take_quiz() missing 1 required positional argument: 'database'
  
  Process finished with exit code 1
  </code></pre>