Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extra path to illustrate eclusive nature of elif #413

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion _episodes/05-cond.md
Expand Up @@ -208,6 +208,8 @@ freeing us from having to manually examine every plot for features we've seen be
> print('B')
> elif 4 < 5:
> print('C')
> elif 4 <= 5:
> print('D')
> ~~~
> {: .python}
>
Expand All @@ -217,7 +219,8 @@ freeing us from having to manually examine every plot for features we've seen be
> 1. A
> 2. B
> 3. C
> 4. B and C
> 4. D
> 5. C and D
>
> > ## Solution
> > C gets printed because the first two conditions, `4 > 5` and `4 == 5`, are not true,
Expand Down