lesson04

Not clear what to replace with should I use either the < or the > and not both?


Sent from my iPhone

> On Sep 21, 2014, at 10:31 PM, Chad Heuschober <notifications@github.com> wrote:
> 
> In task_05.py:
> 
> > @@ -0,0 +1,17 @@
> > +#!/usr/bin/env python
> > +# -*- coding: utf-8 -*-
> > +"""LESSON4:
> > +TASK5
> > +Practice create versus Matchups."""
> > +
> > +import data
> > +MATCHUPS = ('')
> > +ALLM = []
> > +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:
> Don't need the or here since what this would produce is the full cartisian product (Eg, (1,2) and (2,1)). A half cartesian just does one side of the comparison.
> 
> —
> Reply to this email directly or view it on GitHub.