Edit and filter (Todo App)

Add edit <id <new text (edited <id; empty text: error: empty task) and filter all|active|done (showing <filter), which changes what list shows from now on: active means not done. Any other filter prints error: filter must be all, active or done.

Input: As before.

Output: As before.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Keep the current filter in a variable and apply it inside list.

More Todo App practice