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

Revise second question about logical operations #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions roundtable-guides/03-branching.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ Today's round table will focus on reviewing the [lesson on branching](XXX).
## Relational Operators

1. Describe the difference between `=` and `==`.
1. What is the significance of relational operators following below mathematical operators in the precedence hierarchy?

1. Relational operators have lower precedence than mathematical operators. For this example `4*2 > 3 - 1` multiplication and subtraction happen before comparing the results of the mathematical operations. What will the example below evaluate to?
```
a = 1
b = 4
a + 7 > b - 3
```

## Conditionals
1. Why is the order of conditional tests in a chained conditional (`if/elif/elif...`) important?
Expand Down