Challenge
Wrong average
…every sensor reads about 21. Predict it, find where the brackets are missing, fix it, then work out an average speed.
Showing 1–10 of 17
Challenge
…every sensor reads about 21. Predict it, find where the brackets are missing, fix it, then work out an average speed.
Challenge
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.
Challenge
…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…
Example
Dictionaries can contain other dictionaries. Useful for complex data structures.
Example
Dictionaries store data as key-value pairs. Fast access to data by key.
Example
Tuples are immutable lists. Once created, they cannot be modified.
Example
Lists store multiple elements in a specific order. Basics of working with lists.
Challenge
…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…
Challenge
…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…
Challenge
…Sriharikota SLP Every launch has a name, so read it with brackets; use get() with a default for the provider and the pad.