Monday, April 9, 2018

April 9, 2018 - Welcome Back... We have about 7 weeks of school left

Entrance Ticket - Get your Laptop... Ya, we did not do any thing to them... AND Free Stuff...

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.
  • 9:20 - 9:30 - Cleanup

No comments:

Post a Comment