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.
Strings in Python
1. Python strings are immutable sequences and can be indexed, sliced, and iterated like any other sequence, as well as being subject to the in and not in operators. There are two kinds of strings in Python:
Packages in Python
In the world of modules, a package plays a similar role to a folder/directory in the world of files.

