Results for “new line”

Showing 21–30 of 44

  1. Challenge

    Assignment in a condition

    An oxygen check uses = instead of == and has a line that isn't indented, so Python refuses to run it. Predict what happens, fix both errors one after the other, then write an if/else check yourself.

    Fix the code Easy 3 stages if else == SyntaxError
  2. Challenge

    Shared default list

    …sample already in it, and by the end of the week every new log held every sample ever taken. Predict what the program prints, find out where the old samples come from, fix the default, then write a…

    Fix the code Medium 3 stages functions default values mutable defaults None
  3. Challenge

    What arrived?

    …yet. Read it and decide what it will print on its first line. Write your guess in prediction , at the top, between the quotes. Then run it and compare. Any guess passes this stage: the point is to…

    Write the code Easy 3 stages type() data types type conversion sensor data
  4. Challenge

    Telemetry pipeline

    …"Telemetry from CSV", the error handling from "Survive bad lines", the limits from the alert checks and the JSON from "JSON out". The ground station's export arrives every few seconds. Your program…

    Write the code Hard 3 stages project csv json files
  5. Challenge

    Telemetry from CSV

    The feed parser from "Parse the whole feed" still reads two lines somebody pasted into the program. The ground station now delivers a proper export, telemetry.csv , with a header row, and it changes…

    Write the code Medium 2 stages csv csv.DictReader files open
  6. Article Mini projects

    Managing Astronaut Medical Data with Python

    …but you might need to install it separately) Create a new Python file called cosmic_health_tracker.py . This will be our mission control center! 2. Designing Our Astronaut Database Every good space…