April 11, 2018 - Shadow Day
Entrance Ticket -Take a Look at These Links:
Class Agenda:
- 7:30-7:40 - Entry Ticket - 10 min (see top of Blog for today)
- 7:40 - 8:20 - Open Lab time - Robot Project
- 8:20 - 8:40 - Intro to FANUC
- 8:40 - 9:20 - 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.
No comments:
Post a Comment