Coders Packet

To-Do list using File in Python

By Avani Vartak

This is a To-Do list project created in Python which uses a file as a storage medium.

This is a To-Do list project created in Python which uses a file as a storage medium.

This is a Python To-Do list project that allows you to add, view, and delete To-Do items and also delete the whole list. Since we are using a file as storage, this program can be used to retrieve a To-Do list even after the program has been terminated.

Functions performed:

  • Create a list 
  • Add to-do items to the list
  • Delete particular to-do item
  • Delete the entire to-do list
  • View the list

Note: 

1] You don't have to create a file separately, this program will automatically create a file if a file doesn't exist
2] '\033[1m' this sequence is used to print the text in bold and '\033[0m' is used to convert it back to normal. You can delete that sequence if you don't want the text to be bold.

Thank you for reading.

Download project

Reviews Report

Submitted by Avani Vartak (avanivartak)

Download packets of source code on Coders Packet