Assignment1.py
def option3(people, read, year, month, day):
    '''
    With values given by functions createAgeGroups() and topRead() (functions that split participants into age groups and 
    returns the highest rank per age group) prints all the data into a formated UI / box for the user to read from. 

    Para: 
            people: dictionary
            read: dictionary
            year: integer
            month: integer
            day: integer

    Returns:
            None

    '''
    fiveU, sixToNine, tenO = createAgeGroups(people, read, year, month, day)
    winner5, total5 = topRead(fiveU, read)
    winner9, total9 = topRead(sixToNine, read)
    winner13, total13 = topRead(tenO, read)

    print('+=============+==================+============+')
    print('|  Age Group  | Total Books Read | Top Reader |')
    print('+=============+==================+============+')
    print('| 5 and under |        {:<10}| {:<8}   |'.format(total5, winner5))
    print('|         6-9 |        {:<10}| {:<8}   |'.format(total9, winner9))
    print('|       10-13 |        {:<10}| {:<8}   |'.format(total13, winner13))
    print('+=============+==================+============+')

    return

    With values given by functions createAgeGroups() and topRead() (functions that split participants into age groups and 
    returns the highest rank per age group) prints all the data into a formated UI / box for the user to read from. 

    Para: 
            people: dictionary
            read: dictionary
            year: integer
            month: integer
            day: integer

    Returns:
            None

    
With values given by functions createAgeGroups() and topRead() (functions that split participants into age groups and
returns the highest rank per age group) prints all the data into a formated UI / box for the user to read from.


With values given by functions createAgeGroups () and topRead () ( functions that split participants into age groups and returns the highest rank per age group ) prints all the data into a formated UI / box for the user to read from .
def option3(people, read, year, month, day):
    fiveU, sixToNine, tenO = createAgeGroups(people, read, year, month, day)
    winner5, total5 = topRead(fiveU, read)
    winner9, total9 = topRead(sixToNine, read)
    winner13, total13 = topRead(tenO, read)
    print('+=============+==================+============+')
    print('|  Age Group  | Total Books Read | Top Reader |')
    print('+=============+==================+============+')
    print('| 5 and under |        {:<10}| {:<8}   |'.format(total5, winner5))
    print('|         6-9 |        {:<10}| {:<8}   |'.format(total9, winner9))
    print('|       10-13 |        {:<10}| {:<8}   |'.format(total13, winner13))
    print('+=============+==================+============+')
    return
def option3 ( people , read , year , month , day ) : fiveU , sixToNine , tenO = createAgeGroups ( people , read , year , month , day ) winner5 , total5 = topRead ( fiveU , read ) winner9 , total9 = topRead ( sixToNine , read ) winner13 , total13 = topRead ( tenO , read ) print ( '+=============+==================+============+' ) print ( '|  Age Group  | Total Books Read | Top Reader |' ) print ( '+=============+==================+============+' ) print ( '| 5 and under |        {:<10}| {:<8}   |' . format ( total5 , winner5 ) ) print ( '|         6-9 |        {:<10}| {:<8}   |' . format ( total9 , winner9 ) ) print ( '|       10-13 |        {:<10}| {:<8}   |' . format ( total13 , winner13 ) ) print ( '+=============+==================+============+' ) return
With values given by functions createAgeGroups() and topRead() (functions that split participants into age groups and
returns the highest rank per age group) prints all the data into a formated UI / box for the user to read from.
With values given by functions createAgeGroups () and topRead () ( functions that split participants into age groups and returns the highest rank per age group ) prints all the data into a formated UI / box for the user to read from .
'''
    With values given by functions createAgeGroups() and topRead() (functions that split participants into age groups and 
    returns the highest rank per age group) prints all the data into a formated UI / box for the user to read from. 

    Para: 
            people: dictionary
            read: dictionary
            year: integer
            month: integer
            day: integer

    Returns:
            None

    '''
None
people
read
year
month
day