STEP 7: Now we need to evaluate whether the year is not evenly divisibly by 100. This is Condition 1b.

  • From , drag out Remainder. Change my_var to calc_1b and the equation to year % 100
  • From , drag out Boolean Variable. Change my_var to condition_1b.
  • Replace True with this logical statement: calc_1b != 0

!= means "not equal to" and will return True when the value on the left is not equal to the value on the right.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)