title: Creating a function where I can input first names and last names into a dictionary
body: <p>I am kind of stuck, I am trying to make a function that allows me to append onto an empty dict, I want to add first name and surname, and also make it possible to have people with same last names but different first names. Any ideas? This is my first time asking a question on here, let me know if I need to find any other info thanks!</p>
  <pre class="lang-py prettyprint-override"><code>def people():
      people = {}
      prompt = input(&quot;Would you like to add a person to the list? (Y/N): &quot;)
      while prompt.lower() == &quot;y&quot;:
          qs = dict(name='first name', surname='last name')
          for key, value in qs.items():
              people[key] = input('Please enter your {}: '.format(value))
              print(people)
          prompt = input(&quot;Another person? (Y/N): &quot;)
      print(people)
      return people
  
  
  people()
  </code></pre>