Yhteystiedot
Yleisen kielitieteen laitos
PL 9 (Siltavuorenpenger 20 A)
00014 HELSINGIN YLIOPISTO
Puhelin +358 (09) 1911 (vaihde)
Faksi +358 (09) 191 29307
|
|
tulostettava versio
13. Files and input/output.
- Lecture notes
- Practical work
-
Using IDLE, write a program that outputs a text file called
alphabet.txt containing the names of all the letters of
the Greek alphabet
as strings ("alpha", "beta", etc.), with each letter on a
separate line. View the file in a text editor.
-
Write another program that opens and reads alphabet.txt
line by line as far as "lambda", then opens another file
called lambda.txt and copies the rest of alphabet.txt to
lambda.txt starting from "lambda".
14. Conclusion: Where do we go from here?
- Lecture notes
- Practical work
- Further reading
- Next course
Assignment 6.
Note: Do either Assignment 6A or Assignment 6B, but not both.
Assignment 6A
Assignment 6B
© 2001-2006 Graham Wilcock
|