3 *What if [pseudocode](pseudocode.md) was actually code?*
5 Python (name being a reference to Monty Python) is an exceptionally [bloated](bloat.md), extremely [popular](shit.md) [high level](abstraction.md) [interpreted](interpreter.md) "[programming language](programming_language.md)". Its priority is readability, popularity and making it easy and fast to bash code for anyone with at least half a brain hemisphere (that's quarter of a whole brain), so it is very popular among beginners, children, [women](woman.md), non-programmers such as scientists and unqualified [soydevs](soydev.md) who can't handle real languages like [C](c.md). It is highly retarded^[sic] as a beginner friendly language. Python [just werks](just_werks.md) and is comfortable -- writing "code" in Python is practically on the level of explaining to ChatGPT what you want to have programmed for you -- but any program written in it is forever [doomed](doom.md) to be bloated, slow, ugly, big, depressing and will unavoidably die without [maintenance](maintenance.md), for Python's updates purposefully break [backwards compatibility](backwards_compatibility.md) on a weekly basis. Python loves to [update constantly](update_culture.md) so you have to keep rewriting your old programs every day and in fact you must constantly update your operating system so that Python has all the newest [dependencies](dependency.md) that it didn't need yesterday but today it does -- today your Python program works, tomorrow there's only 50% chance it will keep working and the probability further halves every consecutive day, and sometimes it just randomly breaks because why not, you must just constantly pray and update (just a note: this will never happen to you with [C](c.md)). Being based around hype, it is used for anything that comes to fashion, for example at this moment it is the language most frequently used for programming "[neural net](neural_net.md) [AI](ai.md)s".
7 **Python is extremely slow**, even much slower than [JavaScript](javascript.md) and [PHP](php.md) (according to *Computer Language Benchmarks Game*). If you want to make your python programs faster, use the *PyPy* implementation over the default *CPython*.
9 **Programming in python is not real programming**. Making a program in Python versus writing a real program is like making a house in Minetest vs making a real house. Python was in fact made exactly for people who CANNOT program, such as [women](woman.md), economists and professional programmers, it is basically a wheelchair -- those who can program don't need Python just like those who can walk don't need a wheelchair.
11 Python was conceived in 1991 by a Dutchman Guido van Rossum who announced it on [Usenet](usenet.md). Version 1.0 was released in 1994 and version 2.0 in 2000. A very important version was 2.7 released in 2010 -- this was used and supported for a long time but the support was ended in 2020 in favor of Python 3. As of writing this the latest version is 3.9.
13 **Can [we](lrs.md) use python?** There are certain use cases for it, mostly writing [throwaway scripts](throwaway_script.md) and other quick, temporary code. Python can easily help you get into programming as well, so it may well serve as an educational language, however be sure to transition to a better language later on. Remember, **python mustn't ever be used for a serious program**.
15 The reference implementation, *CPython*, is at the same time the one in most widespread use; it is written in [C](c.md) and python itself. There also exist different implementations such as *MicroPython* (for [embedded](embedded.md)), PyPy (alternative implementation, often faster), Jython and so on.
17 What follows is a summary of the python language:
19 - Emphasis is on **"readability"** and comfort, with a bit of stretch the aim is to create a "runnable [pseudocode](pseudocode.md)". To this end is sacrificed performance, elegance, maintainability and other important aspects.
20 - It is **[interpreted](interpreter.md) and highly dynamic**, i.e. data types of variables are dynamic, [lists](list.md), [strings](string.md) and [dictionaries](dict.md) are dynamic, since new versions there are even **arbitrary size integers** by default. There is automatic **[garbage collection](garbage_collection.md)**, code can be modified at run time and so on. All this of course makes the language **slow**, with big memory footprint.
21 - There is **class-based [OOP](oop.md)** which can at least be avoided, it is not enforced.
22 - Python **revolves around [dictionaries](dictionary.md)** (a [data type](data_type.md) capable of storing *key:value* pairs), i.e. most things are internally implemented with dictionaries.
23 - It **doesn't keep backwards compatibility**, i.e. new versions of Python won't generally be able to run programs written in old versions of Python. This is so that the devs can eliminate things that turned out to be a bad idea (probably happens often), but of course on the other hand you have to [keep rewriting](maintenance.md) your programs to keep them working (python provides scripts that help automatize this).
24 - Quite retardedly **indentation is part of syntax**, that's a [shitty](shit.md) design choice that complicates programming (one liners, minification, compact code, [code golf](golf.md), temporary debugging indentation, ...).
25 - There is **no specification** per se -- but at least there is online reference (*The Python Language Reference*) that kind of serves as one.
26 - It has a **gigantic standard library** which handles things such as [Unicode](unicode.md), [GUI](gui.md), [databases](database.md), [regular expressions](regex.md), [email](email.md), [html](html.md), [compression](compression.md), communication with operating system, [networking](network.md), [multithreading](multithreading.md) and much, much more. This means it's almost impossible to implement Python in all its entirety without 100 programmers working full time for at least 10 years.
27 - There are numerous other **smaller fails**, e.g. inconsistent/weird naming of built-in commands, absence of switch statement (well, in new versions there is one already, but only added later and looks kinda shitty) etc.
31 Here is the **[divisor tree](divisor_tree.md)** program implemented in Python3, it showcases most of the basic language features:
34 # recursive function, prints the divisor tree of a number
35 def printDivisorTree(x):
39 for i in range(2,int(x / 2) + 1): # find closest divisors
51 print(" " + str(x) + " ",end="")
58 while True: # main loop, read numbers
60 x = int(input("enter a number: "))