Python
Python is a language very similar to Ruby. Its creator, the “Benevolent Dictator For Life” Guido van Rossum, named it after the British comedy troupe Monty Python when he invented it in the early 1990s. It has strong, dynamic typing very similar to Ruby’s and a similarly clean syntax, which is aided by its use of semantically significant whitespace. In Python, neither functions, blocks of code, nor statements need to have an explicit end-of-line mark (often a semicolon). Ruby’s use of ending markers is also quite minimal, although not to the same degree as Python’s is.
One area where Python and Ruby differ significantly is in flexibility. Python explicitly embraces the idea of There should be one—and preferably only one—obvious way to do ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access