#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Exercise 33: Birthday Dictionaries

This exercise is Part 1 of 4 of the birthday data exercise series. The
other exercises are: Part 2, Part 3, and Part 4.

For this exercise, we will keep track of when our friend’s birthdays
are, and be able to find that information based on their name. Create a
dictionary (in your file) of names and birthdays. When you run your
program it should ask the user to enter a name, and return the birthday
of that person back to them. The interaction should look something like
this:

    >>> Welcome to the birthday dictionary. We know the birthdays of:
    Albert Einstein
    Benjamin Franklin
    Ada Lovelace
    >>> Who's birthday do you want to look up?
    Benjamin Franklin
    >>> Benjamin Franklin's birthday is 01/17/1706.
"""


def get_persons():
    persons = {"Ada Lovelace": "12/10/1815",
               "Alan Turing": "06/23/1912",
               "Albert Einstein": "03/14/1879",
               "Benjamin Franklin": "01/17/1706",
               "Guido Van Rossum": "01/31/1956",
               "Isaac Newton": "01/04/1643",
               "Linux Torvalds": "12/28/1969"}

    return persons


def get_person(name):

    return get_persons().get(name, "\n\t\t\t...Sorry, name not found.")


if __name__ == "__main__":

    print("Welcome to the birthday dictionary. We know the birthdays of:")
    [print("\t" + name) for name, birthday in get_persons().items()]

    name = input("Who's birthday do you want to look up? ")
    print(name + "'s birthday is", get_person(name))

@@ -843,17 +843,14 @@
     
-persons =
+return
  %7B%22A
@@ -889,19 +889,16 @@
         
-   
 %22Alan Tu
@@ -918,19 +918,16 @@
 /1912%22,%0A
-   
         
@@ -975,19 +975,16 @@
         
-   
 %22Benjami
@@ -1022,19 +1022,16 @@
         
-   
 %22Guido V
@@ -1068,19 +1068,16 @@
         
- 
-  
 %22Isaac N
@@ -1098,19 +1098,16 @@
 /1643%22,%0A
-   
         
@@ -1147,28 +1147,8 @@
 %22%7D%0A%0A
-    return persons%0A%0A
 %0Adef
@@ -1341,16 +1341,18 @@
 days of:
+%5Cn
 %22)%0A    %5B
@@ -1434,16 +1434,18 @@
  input(%22
+%5Cn
 Who's bi
@@ -1488,16 +1488,23 @@
   print(
+%22%5Cn%22 + 
 name + %22

Update birthday_dictionaries.py