Adding session03 homework

Thanks!
The data structure is "name", "total donations, "donation 1", "donation 2",
etc.

So a new record would need to be populated with "name" at index 0,
add_donation at index 1 (which, for a new record, is equal to total
donations), and add_donation at index 2 (the first donation itself).

Thanks!
Rob

On Sun, Oct 19, 2014 at 11:47 PM, Christopher H.Barker, PhD <
notifications@github.com> wrote:

> In Students/RPerkins/session03/mailroom.py:
>
> > +
> > +def app_record(app_name, app_dbase):
> > +    """ Append an existing donor record """
> > +    for i in range(len(app_dbase)):
> > +        if app_name in app_dbase[i]:
> > +            app_donation = get_donation()
> > +            app_dbase[i].append(app_donation)
> > +            app_dbase[i][1] += int(app_donation)
> > +            print_email(app_name, app_donation)
> > +            break
> > +
> > +
> > +def add_record(add_name, add_dbase):
> > +    """ Add new donor to database """
> > +    add_donation = get_donation()
> > +    new = [add_name, int(add_donation), add_donation]
>
> why is add_donation in there twice?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/UWPCE-PythonCert/IntroToPython/pull/39/files#r19069745>
> .
>



-- 
*Robert Perkins*
*Mobile:* 425-239-9269
*Email:* meshmote@gmail.com
 *Professional Profile
<http://www.linkedin.com/pub/robert-perkins/9/a6a/a91>*
<http://maps.google.com/maps?q=&hl=en>
See who we know in common
<http://www.linkedin.com/e/wwk/29505421/?hs=false&tok=0zCreXIp0dhRQ1>Want a
signature like this?
<http://www.linkedin.com/e/sig/29505421/?hs=false&tok=1-_hPrm6YdhRQ1>