[Tutor] Creating To Do List Program - Question

Rafael Knuth rafael.knuth at gmail.com
Sun Sep 29 22:42:58 CEST 2013


Hej there,

I am writing a to do list program in Python 3.0.

Earlier this week, I shared my first iteration on the mailing list,
and the feedback was that I should learn how to create, write to and
read from a text file – which I did. Below please find my second
iteration. I know my program is super cheesy & primitive, but I don’t
care, it does what I expect it to do, and I will improve it in further
iteration cycles. As of now, I want to understand how I can add
further functionalities to my program such as: appending items to the
list, removing and replacing items. Can anyone help? Thank you very
much in advance!

print("""

Welcome World's Most Geeky To Do List Program

G E E K L I S T  1 . 0

If you want to add items to the list, enter:

text_file = open("ToDoList.txt", "w")
text_file.write("add your item here ")
text_file.write("add action item here ")
text_file.write("you get the point, right?")
text_file.close()

If you want to print your to do list, enter:

text_file = open("ToDoList.txt", "r")
print(text_file.read())
text_file.close()

We are constantly improving our program, watch out for version 2.0!

""")


More information about the Tutor mailing list