Class Agenda:
- 12:30-12:45 - Entry Ticket - 15 min (see top of Blog for today)
- 12:45 - 12:50 - Bot and Beverages
- 12:50 - 1:50 - -Python 4 Everyone
- 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.
- 1:50 - 2:15 - I'm thinking...
- 2:15 - 3:20 - Open Lab time - Robot Project
- Make sure you turn in your "What I did today in Open Lab" form.
- 3:20 - 3:30 - Cleanup
No comments:
Post a Comment