Challenge
Missing reading
…check from "Alert 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.
Showing 1–10 of 26
Challenge
…check from "Alert 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
crew = crew.sort() leaves the roster as None. Predict it, find out what sort() really gives back, fix it by sorting in place, then sort readings from highest to lowest and keep the top three.
Challenge
…samples from earlier calls, because the default list is created once and shared. Predict it, prove the calls share one list, fix it with None as the default, then write a function that hands out a…
Challenge
…first, then the edge cases, an empty list that should give None and lists with negative values, so broken copies of the function can't pass.
Challenge
…function": the whole record for a good line first, then None for a blank line, a comment and a line with a missing field, so a broken parser can't pass.
Challenge
…wrong with one cargo item: missing fields, a mass that isn't a number, is 0 or is over the limit. Print a pass or fail line per item, then catch duplicate IDs and check the total load.
Challenge
Print only the launches whose status is Go from a list of launch dicts, then collect the others with their status into one "not go yet" line, or none.
Challenge
…which returns the record dict, then let it return None for blank, comment and damaged lines so the loop only keeps real records.
Challenge
…its result instead of returning it, so the caller gets None. Predict the last line, find out what the function gives back, fix it with return, then write a conversion function that returns.
Challenge
…a keyword-only decimals option after *values and return None when there are no values.