Results for “continue”

Showing 11–18 of 18

  1. Challenge

    Command parser

    Write parse_command(), which turns typed commands such as burn 12.5 or set mode safe into tuples and raises ValueError with a reason for anything malformed, then run a whole batch of commands and…

    Write the code Medium 2 stages project parsing strings split
  2. Challenge

    Duplicate events

    Print each capsule event once, keeping the first copy, by checking every ID against a set of IDs already seen, then report which IDs came in more than once.

    Write the code Medium 2 stages sets add in deduplication
  3. Challenge

    Safe number input

    …the try around the conversion only. Inside except , use continue to go straight to the next question; after the try , check the number.

    Write the code Easy 2 stages errors try except ValueError
  4. Challenge

    Running totals

    …burn_1 and store the number in after_first_burn . Modify. Continue the sequence: the second burn, the top-up and the third burn, each with -= or += , printing the level after each step: After burn 1…

    Write the code Easy 3 stages variables -= += updating values
  5. Article Python Fundamentals

    Variables and data types in Python

    …calculations to complex mission parameters. As you continue your journey in space-related Python programming, you'll find these basic concepts serving as the building blocks for more advanced…

  6. Article Mini projects

    Drawing Planetary Orbits in Python

    …to fascinating phenomena like orbital resonances. As you continue your journey in space science, you'll encounter these and many other intriguing concepts. Keep exploring, future astronauts! The stars…

  7. Article Python Fundamentals

    Python If/Else for Beginners

    …Think of it this way: if is mission go; else is the contingency plan. elif — multiple checkpoints elif (short for "else if") handles more than two options. fuel_percent = 50 if fuel_percent > 50…