Challenge
Log to a file
Write the day's mission log entries to mission.log with with open(), one per line, read the file back and print it, then add an append_entry() function that adds lines at the end without wiping what…
Showing 1–10 of 79
Challenge
Write the day's mission log entries to mission.log with with open(), one per line, read the file back and print it, then add an append_entry() function that adds lines at the end without wiping what…
Challenge
…share one list, fix it with None as the default, then write a function that hands out a fresh list each time.
Challenge
…it by passing the count in and returning the new one, then write a fuel function the same way.
Challenge
…names share one list, fix it by returning a new list, then write a filter that leaves its input alone.
Challenge
…which statuses give None, make every path return, then write a function where every path returns.
Challenge
…hidden error, catch only ValueError and fix the typo, then write a parser that lets other errors through.
Challenge
…out what the function gives back, fix it with return, then write a conversion function that returns.
Challenge
…into named constants without changing the output, then write a Mars version with constants from the start.
Challenge
…compare both values, fix it by returning the total, then write a function that uses only its parameters.
Challenge
…ends. Predict it, find the stuck counter, fix it, then write a wait that gives up when the readings run out.