lesson04

Lesson 5 2nd question item 3. It is not allowing to put get_interest_rate() function inside the caculate_total() as it allows you in your video, keeps erroring out as a syntax errror. In your example you have my_func(my_func2(), 18) if I put get_interest_rate() inside of calculate_total() I get a syntax error. If I try rate = get_interest_rate() with or without variables I get unbound error local variable rate referenced before assignment . 

Sent from my iPhone

> On Sep 27, 2014, at 9:49 AM, Chad Heuschober <notifications@github.com> wrote:
> 
> In task_05.py:
> 
> > +Practice create versus Matchups."""
> > +
> > +import data
> > +MATCHUPS = ("")
> > +ALLM = []
> > +C = 1
> > +
> > +for ROW_INDEX, ROW_NAME in enumerate(data.VERSUS):
> > +    for COLUMN_INDEX, COLUMN_NAME in enumerate(data.VERSUS):
> > +        if ROW_INDEX > COLUMN_INDEX or ROW_INDEX < COLUMN_INDEX:
> > +            MSG = "{0}, {1}, {2}\n"
> > +            ALLM.append(MSG.format(C, ROW_NAME, COLUMN_NAME).strip())
> > +            C += 1
> > +            MATCHUPS = tuple(ALLM)
> > +        else:
> > +            break
> Hi Anthony. Could you explain what you mean by assign a function to a function? What homework and task are you try to work on?
> 
> —
> Reply to this email directly or view it on GitHub.