Results for “new line”

Showing 1–10 of 44

  1. Challenge

    Progress on one line

    Make two prints share one line, like Uploading flight plan... done, by changing how print() ends. A Python challenge on print(end=...) for progress messages.

    Write the code Easy 3 stages print end progress console
  2. Challenge

    Wrong line commented out

    A real check is commented out and a debug line is left on. Use # comments to put the pre-flight checklist script back in order. A beginner Python challenge on comments.

    Fix the code Easy 2 stages comments debugging print
  3. Challenge

    Count warnings

    Count the entries and the WARN lines in a multi-line mission log with count(), fix the count when a message mentions WARN itself, then summarise the log by level.

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

    Changed the caller's list

    …the caller's stored readings change too. Predict the first line, prove both names share one list, fix it by returning a new list, then write a filter that leaves its input alone.

    Fix the code Medium 3 stages functions lists mutation return
  5. Challenge

    Survive bad lines

    …sensor sends ERR and float() stops the program. Skip lines that fail to convert and count them, then let one try cover short lines too and print each error.

    Write the code Medium 2 stages errors try except ValueError