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

Extra diagrams for 07-cond.md #1001

Merged
merged 2 commits into from
Mar 21, 2023
Merged

Conversation

MYPei
Copy link
Contributor

@MYPei MYPei commented Jul 21, 2022

With regards to issue #774 it may be helpful to include a brief discussion on the differences between having multiple elif statements and multiple if statements when conditions are not mutually exclusive. To better illustrate the differences I've made some flowcharts that I have included as figures. I have folded these figures and a short explanation into the Solution section of the "How Many Paths?" challenge as it seems a suitable point to make the distinction, and since it is not in the main body of the lesson it could be skipped if the instructor feels it is not necessary.

MYPei added 2 commits July 21, 2022 13:12
Expanded the solution of the "How Many Paths?" challenge to have a short discussion of how the use of multiple `elif` conditions differs from multiple `if` conditions. This includes two diagrams.
Added figures for Making Choices section changes discussing distinction between multiple `elif` and multiple `if` statements.
@noatgnu noatgnu merged commit 2d2eb88 into swcarpentry:gh-pages Mar 21, 2023
zkamvar pushed a commit that referenced this pull request Apr 21, 2023
Extra diagrams for 07-cond.md

Hi @MYPei ,

Thank you for the pull request and contribution to the visual aspect of the lesson. We will merge your diagrams workflow with the main lesson.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants