To do list

This functionality allows to create to-do list. It only has as optional argument the text for success.

to_do_list(tasks, header='', success='Bravo!')

Renders the tasks as a to-do list, with optional header and success message. The tasks are a dictionary of tasks (supposed to be ordered as Python +3.6) with their completed (True) or to-do (False) status as a checkbox.

Parameters:
  • tasks (dict) – dictionary of tasks in format string:bool

  • header (str, optional) – description of the tasks

  • success (str, optional) – success message

Returns:

boolean with the exit status of the function

Return type:

bool