Challenge
What arrived?
…and text that only looks like numbers. Predict what type() shows, find the values that need converting, then convert a packet yourself.
9 results
Challenge
…and text that only looks like numbers. Predict what type() shows, find the values that need converting, then convert a packet yourself.
Challenge
…decimals and True/False. A PRIMM challenge on Python data types.
Challenge
…first and then the date. Build the file names from the data, then a folder path for each sensor. From an ID and a date Build the file name for this sensor's data: the ID in lower case, an underscore…
Challenge
…level" so a sensor that didn't answer, None, prints NO DATA instead of crashing, without treating a real 0 as missing, then do the same for an empty field in a telemetry line.
Challenge
…line just above it is where it happened. Fill in error_type , crash_function and crash_line at the end of the program, then fix the bug on that line so the program prints: Average: 695.0 K Fix the…
Challenge
…readings to the flight computer as text, the way most data arrives from files, forms and networks. The code that adds them up looks right, but the total it prints makes no sense. Predict what it…
Challenge
…split() gives text, so "412.5" + 273.15 would stop with a TypeError . Turn the value into a number, show it with its unit, and add the temperature in kelvin, with two decimal places: Time…
Challenge
…thing any program does with it is turn that text into data. Do that step yourself with the json module, then deal with a response that didn't arrive in one piece. json.loads() The prints from "API…
Challenge
Engineers check averages all day: three spot readings typed by hand, a whole pass from the database, sometimes just two numbers. A function that wants a list makes every one of those calls a little…