Class Agenda:
- 7:30-7:40 - Entry Ticket - 10 min (see top of Blog for today)
- 7:40 - 8:40 -Python 4 Everyone
- Chapter 8 "Lists" lecture slides
- PY4E Chapter 8
- romeo.txt
- Exercise 4: Download a copy of the file from www.py4e.com/code3/romeo.txt
Write a program to open the file romeo.txt and read it line by line. For each line, split the line into a list of words using the split function.
For each word, check to see if the word is already in a list. If the word is not in the list, add it to the list.
When the program completes, sort and print the resulting words in alphabetical order.
- 8:40 - 9:20 - Open Lab time - Robot Project
- Make sure you turn in your "What I did today in Open Lab" form.
- 9:20 - 9:30 - Cleanup
No comments:
Post a Comment