PASO 7: Ahora necesitamos evaluar si el año no es divisible por 100. Esta es la Condición 1b .

  • Desde , arrastre Remainder . Cambie my_var a calc_1b y la ecuación al year % 100
  • Desde , arrastre Boolean Variable . Cambie my_var a condition_1b .
  • Reemplace True con esta declaración lógica: calc_1b != 0

!= significa "distinto de" y devolverá True cuando el valor de la izquierda no sea igual al valor de la derecha.

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
  • Enviar Trabajo
  • Actividad Siguiente
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)