Results for “brackets”

Showing 1–10 of 12

  1. Challenge

    Broken boot script

    The flight computer won't boot: a quote and a bracket are missing. Read the SyntaxError, find the broken line and fix it. A beginner Python debugging challenge.

    Fix the code Easy 3 stages SyntaxError debugging print quotes
  2. Challenge

    Normalise a command

    …command and make it lower case, then print it in square brackets, so any spaces left over would show: Command: [launch] strip() removes spaces from both ends and lower() turns capitals into small…

    Write the code Easy 3 stages strings strip lower replace
  3. Challenge

    Sort by a field

    …and pass it to sorted(launches, key=launch_date) , without brackets after its name. Leave launches itself in its original order. Heaviest first Print the cargo heaviest first, with the mass and then…

    Write the code Easy 2 stages functions sorted key reverse
  4. Challenge

    API response

    …JAXA Status: Go Read a value with its key in square brackets: launch["name"] . Inside an f-string, use single quotes for the key: {launch['name']} . Everything in the response Before relying on an…

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

    Search the log

    …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
  6. Challenge

    Waypoint distance

    …2 is dx squared, and ** 0.5 is the square root. Mind the brackets: ** runs before + . A route The rover won't stop at B: the route goes on to waypoint C, 780 m east and 920 m north. Add c_x and c_y…

    Write the code Easy 2 stages exponent square root ** Pythagoras
  7. Challenge

    CSV row

    …separate arguments and add sep="," at the end, inside the brackets of print() . No spaces after the commas: a program reading the file would keep them as part of the values. Header row A CSV file…

    Write the code Easy 3 stages print sep csv telemetry