{{ message }}

# Add extra path to illustrate eclusive nature of elif #413

Open
wants to merge 1 commit into
from
Open

# Add extra path to illustrate eclusive nature of elif#413

wants to merge 1 commit into from

## Conversation

### gjbex commented Oct 2, 2017

 In the exercise "How Many Paths?" i've added an additional `elif`, and changed the answers accordingly. In this form, the exercise will test whether the learner realizes that `elif` are exclusive.
``` Add extra path to illustrate eclusive nature of elif ```
``` 9a5e940 ```

### tbekolay commented Oct 4, 2017 • edited

 While I like testing the fact that if/elif/else blocks are mutually exclusive, I don't like how it is included in this exercise because no one would write a if/elif/else block like that. `4 > 5`, `4 == 5`, `4 < 5` are three nice, clean cases that one can easily reason about, but `4 > 5`, `4 == 5`, `4 < 5`, `4 <= 5` has the feeling that one of these cases does not belong. What do you think about, instead, adding a separate exercise right after this one that solely tests the exclusive nature of if/elif/else blocks?

### gjbex commented Oct 5, 2017

 I agree the in its current form, it is contrived. I'll try to come up with a better formulation as an additional exercise in a new pull request. Thanks. … On Wed, Oct 4, 2017 at 7:39 PM, Trevor Bekolay ***@***.***> wrote: While I like testing the fact that if/elif/else blocks are mutually exclusive, I don't like how it is included in this exercise because no one would write a if/elif/else block like that. 4 < 5, 4 == 5, 4 > 5 are three nice, clean cases that one can easily reason about, but 4 < 5, 4 == 5, 4 > 5, 4 <= 5 has the feeling that one of these cases does not belong. What do you think about, instead, adding a separate exercise right after this one that solely tests the exclusive nature of if/elif/else blocks? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#413 (comment)>, or mute the thread . -- dr. Geert Jan Bex HPC consultant/analist DOC T +32(0)11 26 82 31 www.uhasselt.be Universiteit Hasselt - Campus Diepenbeek Agoralaan Gebouw D - B-3590 Diepenbeek Kantoor D250a
added the label Apr 8, 2018

### maxim-belkin commented Apr 8, 2018

 Hmm, I like this addition... What are your opinions, @annefou and @MikeTrizna ?

### annefou commented Apr 8, 2018

 I like it too.
approved these changes
added and removed labels Jun 8, 2018