A module called os lets you interact with the operating system using Python. It provides functions that are available on Unix and/or Windows systems. If you’re familiar with the command console, you’ll see that some functions give the same results as the commands available on the operating systems.
File processing in Python
Due to the type of the stream’s contents, all the streams are divided into text and binary streams. The text streams ones are structured in lines; that is, they contain typographical characters (letters, digits, punctuation, etc.) arranged in rows (lines), as seen with the naked eye when you look at the contents of the file in the editor. This file is written (or read) mostly character by character, or line by line.
Generators, iterators, lambdas and closures;
A Python generator is a piece of specialized code able to produce a series of values, and to control the iteration process. This is why generators are very often called iterators, and although some may find a very subtle distinction between these two, we’ll treat them as one.
Continue reading “Generators, iterators, lambdas and closures;”
Object-Oriented Programming in Python
1. A class is an idea (more or less abstract) which can be used to create a number of incarnations – such an incarnation is called an object.
Exceptions in Python
1. In Python, there is a distinction between two kinds of errors:

