Pull request for Lecture 2 assignments for sea-c28

I see what you mean now. The homework said other functions not other
series, so I assumed that we would eventually add completely different
functions to sum_series.

On Wed, Dec 3, 2014 at 12:24 PM, Joshua Frailey <notifications@github.com>
wrote:

> In Students/ConstantineHatzis/series.py:
>
> > +    a, b = 2, 1  # Initialize Lucas Numbers
> > +    for i in range(1, n):
> > +        a, b = b, a + b  # Generate nth and nth + 1 value of the Lucas Numbers
> > +    return (a)
> > +
> > +
> > +def sum_series(n, a=0, b=1):
> > +    """Return the nth value of a series determined by the optional arguments, a
> > +        and b"""
> > +    if a == 0 and b == 1:
> > +        result = fibonacci(n)
> > +    elif a == 2 and b == 1:
> > +        result = lucas(n)
> > +    else:
> > +        print(u"That function is not available yet")
> > +    return result
>
> Fibonacci numbers and Lucas numbers are produced by variations of the same
> sequence. The only difference is the two starting numbers. If you change
> those two starting numbers then the sequence should produce a different
> series numbers. The assignment requests that your sum_series() function be
> able to accept two starting numbers and return the value of the nth number
> in that series.
>
> Lots of people weren't sure what to do with this. I'll let Cris know that
> a more explicit instructions would be helpful.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/codefellows/sea-c28-students/pull/42/files#r21262047>.
>