Start learning →

Assign or compare

Exercise and reference answers

Upper category
Assign
Lower category
Compare
Items
  1. Category
    Assign
    Item
    x = 5
  2. Category
    Assign
    Item
    y += 2
  3. Category
    Assign
    Item
    Changes it
  4. Category
    Assign
    Item
    One equals
  5. Category
    Compare
    Item
    x == 5
  6. Category
    Compare
    Item
    a > b
  7. Category
    Compare
    Item
    Gives bool
  8. 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._
Continue learning with Quill →

Browse more CS Olympiad questions and exercises →