Share |




Programming in Python

Over the weekend -- we enjoyed our first bit of work in Python.

So Far

This exercise sumarizes what we have learned in the Google Python Exercises. There is a lot more there, along with YouTube videos by Nick Parlante to explain the exercises.

Open small.txt as a string and display it
Convert to lower case. Split on the whitespace. Alphabetize. Display.
Count the instances of each member of the array.
Display in the form (word1, count1), (word2, count2)

You can run the code calling small.txt at the command line, after you save the code in an editor such as Notepad++ with file extension py.

Introduction to Python

Python String

Python List

Python File Read/Write