Results for “quotes”

Showing 41–48 of 48

  1. Challenge

    API response

    …brackets: launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before relying on an API, developers look at a whole response. After the…

    Write the code Easy 2 stages dictionaries keys items JSON
  2. Challenge

    Aligned status board

    …into the braces: {'SYSTEM':<12} . Use the other kind of quotes inside, so they don't end the f-string. Readings on the right The board gets a third column: each system's temperature in °C. Numbers…

    Write the code Medium 3 stages f-strings alignment tables formatting
  3. Challenge

    CSV row

    …C The gaps above are tab characters, not spaces. Inside quotes, a tab is written as a backslash and a t : sep="\t" .

    Write the code Easy 3 stages print sep csv telemetry
  4. Challenge

    Read the error

    …names. Look closely: the marks around the text look like quotes, but they aren't the ones Python accepts. Fix the line so the log prints: Day 2 flight log 08:00 Crew wake-up 09:40 Docking port 2…

    Fix the code Easy 3 stages SyntaxError IndentationError error messages debugging
  5. Challenge

    Path in a config

    …Put an r right before the opening quote of the path. That makes it a raw string , in which a backslash is just a backslash. Ends with a backslash The config now also names the archive folder, and…

    Fix the code Easy 2 stages raw strings escape sequences paths print
  6. Challenge

    Log line format

    …nominal Use an f-string: put f right before the opening quote, and each variable in curly braces where its value goes. Note the two spaces after the level. Leave the three given lines as they are: a…

    Write the code Easy 2 stages f-strings print logs formatting