Results for “quotes”

Showing 51–55 of 55

  1. 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
  2. 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
  3. Article Python Fundamentals

    Python Functions for Beginners

    …describe a function with a docstring , a string in triple quotes placed right under the def line: def weight_on_planet(earth_weight, gravity=0.38): """Return what something would weigh on another…

  4. 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
  5. 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