Results for “end”

Showing 41–50 of 56

  1. Challenge

    Entries per level

    At the end of every orbit the flight director gets one line about the log: how many entries of each level it had. A sudden jump in warnings says more than any single entry. Count the entries per…

    Write the code Easy 2 stages dictionaries counting get sorted
  2. Challenge

    Crew roster

    …is always first, and whoever joined last is at the end. The mission board shows who is in charge, who is newest and how many people are on board. Read those facts out of the list, then add the full…

    Write the code Easy 2 stages lists indexing negative index len
  3. Challenge

    Missing index

    …indexes exist, fix it, then pick out readings at either end and in the middle. Predict and run Don't run the code yet. Read it and decide what it will print. Write your guess in prediction , at the…

    Fix the code Easy 3 stages lists indexing IndexError len
  4. Challenge

    Alert level

    …each branch instead of printing it, and print once at the end: ENG-2: 412.5 °C, WARN Each branch sets level , and the single print() after the chain uses it.

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

    Flatten nested ifs

    …reports the first one it finds; GO goes in the else at the end: Docking: HOLD, closing speed too high Docking: HOLD, misaligned Docking: HOLD, latches not ready Docking: GO Check the speed first, then…

    Fix the code Medium 2 stages if elif and nested conditions
  6. Challenge

    Validate a command

    …then compare it in an if / elif chain, with else at the end. Helpful errors Make the errors helpful. For an empty answer, ask for a command; for an unknown one, repeat what was typed, without the…

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

    Count warnings

    At the end of each orbit, the flight director reads a summary of the mission log: how many entries, and how many of them are warnings. A sudden jump in warnings is often the first sign that something…

    Write the code Medium 3 stages strings count multi-line strings logs
  8. Challenge

    Search the log

    …plus its length, plus one for the space, and leave the end out. The time in brackets can grow longer, [T+100:02:00] , so work from position , not from a fixed number.

    Write the code Medium 2 stages strings in find slicing
  9. Challenge

    Signal delay

    …formatter". The order matters: round the seconds at the end instead, and a delay of 779.7 seconds turns into "12 min 60 s". Round trip A command can't be confirmed until the reply comes back, so…

    Write the code Medium 3 stages division round // %
  10. Challenge

    Round or cut?

    …Most of the time they agree. When they don't, a crate can end up a kilogram lighter on paper than on the scales. Predict where they differ, investigate a rule that surprises most programmers, then…

    Write the code Medium 3 stages int round rounding type conversion