Assign or compare
Exercise and reference answers
- Upper category
- Assign
- Lower category
- Compare
- Items
- Category
- Assign
- Item
- x = 5
- Category
- Assign
- Item
- y += 2
- Category
- Assign
- Item
- Changes it
- Category
- Assign
- Item
- One equals
- Category
- Compare
- Item
- x == 5
- Category
- Compare
- Item
- a > b
- Category
- Compare
- Item
- Gives bool
- Category
- Compare
- Item
- Two equals
- Instructions
- Send each item to the assignment track or the comparison track.
Explanation
_Source: OpenStax Introduction to Python Programming, Chapter 4._