HomePython Page 8 - Python 101 (part 5): Snake Oil For The Soul
Pop() Goes The Weasel - Python
Now that you know how to create and use Python's tuples, listsand dictionaries, it's time to get your hands dirty. In this article, findout how to read from, and write to, files on the filesystem with built-inPython methods, and also take a look at some of the new features availablein Python 2.x.
And that's about it for the moment. In this article, you learnt how to opena connection between your Python program and a file residing on yourfilesystem. You then learnt how to use built-in Python methods to read datafrom and to that file, together with some additional methods and propertiesthat might come in useful. Finally, you've also added to your store ofPython knowledge with a look at some of the new features available inPython 2.x.
Over the next few article, we'll be elevating our view a little, with alook at the Python framework for software abstractions like functions,classes and modules. Specifically, in the next article, I'll be showing youhow to build your own functions, and also discussing return values andarguments in the context of a Python program. Make sure you don't miss thatone!