[Tutor] Creating To Do List Program - Question

Dominik George nik at naturalnet.de
Sun Sep 29 23:01:51 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512



Rafael Knuth <rafael.knuth at gmail.com> schrieb:
>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!
>
>""")
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/mailman/listinfo/tutor

Hi,

why don't you remove the first and last line and then use the "cat" interpreter instead?

Seriously, you should try to write a program first, then ask for help. Just follow the instructions from your output below!

- -nik
- --
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8-fdroid

iQFNBAEBCgA3BQJSSJU/MBxEb21pbmlrIEdlb3JnZSAobW9iaWxlIGtleSkgPG5p
a0BuYXR1cmFsbmV0LmRlPgAKCRAvLbGk0zMOJT1IB/9l3mmERfFT7zzQo1HLharf
j/bNkwpouG4rJ6dB+/4RIu9EBvUl0i3uvA9O0Lwo4B6cU4ulHLyZd/dj1vdYs4a/
7XfUIlb78fIhHWgpgfjglXheQeUaruspfc/XfYZ0MJSwWVoAyC9C/dtOGGq3nlfM
K6eE0ScoteVRsW5UsqIv5qzbEqjWGW/j8frySj7uYEr24VP/SVKT2MwAZy1zv7uy
8FwrmvGjyx8lXa/sEVfZzpNXgikENQumt6ZCUMcNf2FM/0kxzie3e8Z7V/Ofkygt
ccWMoMRlmcF/l1m45bPbQ6RFw4frTOekCujNHNa5RR+OEi3HcugKMzMKDGqBn5M8
=/cCh
-----END PGP SIGNATURE-----



More information about the Tutor mailing list