Commit 7ea97730 authored by Stephen Pearce's avatar Stephen Pearce Committed by Maxim Belkin

05-cond.md: Update loop variable names (#740)

parent 2b23c2e2
......@@ -410,7 +410,7 @@ freeing us from having to manually examine every plot for features we've seen be
> {: .output}
>Use the following Python code as your starting point:
> ~~~
> files = ['inflammation-01.csv',
> filenames = ['inflammation-01.csv',
> 'myscript.py',
> 'inflammation-02.csv',
> 'small-01.csv',
......@@ -438,10 +438,10 @@ freeing us from having to manually examine every plot for features we've seen be
>
> > ## Solution
> > ~~~
> > for file in files:
> > if file.startswith('inflammation-'):
> > for filename in filenames:
> > if filename.startswith('inflammation-'):
> > large_files.append(file)
> > elif file.startswith('small-'):
> > elif filename.startswith('small-'):
> > small_files.append(file)
> > else:
> > other_files.append(file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment