Challenge
JSON out
…takes JSON. The summary already exists as a Python dict. Printing it with print(summary) looks close, but single quotes, True and None aren't JSON, and the archive rejects it. Produce real JSON text…
Showing 131–140 of 237
Challenge
…takes JSON. The summary already exists as a Python dict. Printing it with print(summary) looks close, but single quotes, True and None aren't JSON, and the archive rejects it. Produce real JSON text…
Challenge
…pages Merge the pages into one list called launches , then print how many launches there are, and each one: Launches: 7 Lumen-1: success Kestrel-4: success Aurora Relay: failure Kestrel-5: success…
Challenge
…comment line. Skip blank lines and comment lines, so it prints only the readings: 09:30:05 ENG-2: 412.5 C 09:30:05 TANK-1: 78.3 % 09:30:10 CABIN: 101.2 kPa 09:30:10 ENG-2: 415.0 C At the top of the…
Challenge
…of longitudes. Pick the one the spacecraft is over and print it: from 60 to 180 New Norcia from -60, below 60 Cebreros below -60 Malargüe For 100.0 it's Ground station: New Norcia . Go through the…
Challenge
…only its last four characters show, the way bank cards are printed on receipts, then do it inside a real log line. Mask the code Replace every character of the access code except the last four with *…
Challenge
…the link speed in Mbit/s, both as decimal numbers, and print the transfer time in minutes with one decimal place. For a 450 MB file at 2 Mbit/s: Downlink time: 30.0 min Forget the 8 and the answer…
Challenge
…the minutes left over and the seconds left over, and print: 27 h 46 min 40 s // divides and keeps only the whole part; % gives what's left over. An hour has 3600 seconds and a minute 60. Clock format…
Challenge
…455.0 outside 0.0-450.0 Look at the decision line it prints after that. If it seems wrong to you, you are right: that is the fifth bug, for stage 2. This stage checks the lines above. Make it right…
Challenge
…mass for a mass below 0. The loop at the bottom then prints: CG-0042: OK CG-0043: missing item, negative mass CG-0044: missing mass_kg CG-42: OK Start with problems = [] , append each problem you…
Challenge
…, which trims the email and makes it lower case. Print every sign-up, cleaned: Anna Kowalska <anna.kowalska@example.org> Kenji Tanaka <k.tanaka@example.org> Chioma Okafor <chioma.okafor@example.org>…