Results for “else”

Showing 1–10 of 58

  1. Article Python Fundamentals

    Python If/Else for Beginners

    Learn Python if, elif, and else with clear, space-themed examples and hands-on exercises. Perfect for beginners who want to chart the control flow of their programs.

  2. Challenge

    Validate a command

    …with an if/elif chain, print Unknown command for anything else, then handle empty input and show what was typed.

    Write the code Easy 2 stages if elif else input
  3. Challenge

    Upload router

    …where it goes: .png or .jpg images .csv telemetry anything else rejected For the camera image in the starter code: cam-1_2026-03-14.png -> images/ Use endswith() for each extension, or to accept two…

    Write the code Easy 2 stages if elif else or
  4. Challenge

    Alert level

    …temperature into OK, WARN or CRITICAL with if, elif and else and two thresholds, check the exact boundaries, then store the level in a variable for a status line.

    Write the code Easy 2 stages if elif else comparisons
  5. Challenge

    Ground station pick

    Choose New Norcia, Cebreros or Malargüe from the longitude under a spacecraft with an if/elif chain of ranges, then accept longitudes from 0 to 360 and reject values that can't be longitudes.

    Write the code Easy 2 stages if elif else ranges
  6. Challenge

    Flag from config text

    …case and with stray spaces. Yes and true mean on; anything else means off. Print: Telemetry: on Telemetry: off Normalise the value first, as in "Normalise a command", then compare it with both words…

    Fix the code Easy 3 stages bool if else config