Pull request for Lecture 2 assignments for sea-c28

Thanks for pointing that out. I think I did better in the following
assignments with user input validation.

On Wed, Dec 3, 2014 at 1:26 PM, Joshua Frailey <notifications@github.com>
wrote:

> In Students/ConstantineHatzis/series.py:
>
> > +
> > +
> > +def fibonacci(n):
> > +    """Return the nth value in the Fibonacci Series"""
> > +    a, b = 0, 1  # Initialize Fibonacci Series
> > +    for i in range(1, n):
> > +        a, b = b, a + b  # Generate nth and nth + 1 value in Fibonacci Series
> > +    return (a)
> > +
> > +
> > +def lucas(n):
> > +    """Return the nth value of the Lucas Numbers"""
> > +    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)
>
> The way you've defined fibonacci() and lucas() results in a (possibly)
> unexpected property:
>
> fibonacci(0) == fibonacci(1)
> >>> True
> lucas(0) == lucas(1)
> >>> True
>
> This assignment didn't specify what values of input your functions needed
> to be able to handle, so there's no points lost here. I want to point it
> out because we're getting into assignments that deal with user input (which
> should never be trusted) for which you'll need to think about which input
> types and values should be considered valid and how to validate them.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/codefellows/sea-c28-students/pull/42/files#r21266392>.
>