Python What if [1]pseudocode was actually code? Python (name being a reference to Monty Python) is an exceptionally [2]bloated, extremely popular [3]high level [4]interpreted [5]programming language. Its priority is readability and making it easy and fast to bash together some code for anyone with at least half a brain hemisphere, so it is eminently popular among beginners, children, [6]women, non-programmers such as scientists and unqualified [7]soydevs who can't handle real languages like [8]C. Python [9]just werks and is comfortable, but any program written in it is forever doomed to be bloated, slow, ugly, big and will unavoidably die without [10]maintenance, for Python's updates purposefully break [11]backwards compatibility. At this moment it is the language most frequently used for programming "neural net [12]AIs". Python is extremely slow, even much slower than [13]JavaScript and [14]PHP (according to Computer Language Benchmarks Game). If you want to make your python programs faster, use the PyPy implementation over the default CPython. 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 [15]women, 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. Python was conceived in 1991 by a Dutchman Guido van Rossum who announced it on [16]Usenet. 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. Can [17]we use python? There are certain use cases for it, mostly writing [18]throwaway scripts 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. The reference implementation, CPython, is at the same time the one in most widespread use; it is written in [19]C and python itself. There also exist different implementations such as MicroPython (for [20]embedded), PyPy (alternative implementation, often faster), Jython and so on. What follows is a summary of the python language: * Emphasis is on "readability" and comfort, with a bit of stretch the aim is to create a "runnable [21]pseudocode". To this end is sacrificed performance, elegance, maintainability and other important aspects. * It is [22]interpreted and highly dynamic, i.e. data types of variables are dynamic, [23]lists, [24]strings and [25]dictionaries are dynamic, since new versions there are even arbitrary size integers by default. There is automatic [26]garbage collection, code can be modified at run time and so on. All this of course makes the language slow, with big memory footprint. * There is class-based [27]OOP which can at least be avoided, it is not enforced. * Python revolves around [28]dictionaries (a [29]data type capable of storing key:value pairs), i.e. most things are internally implemented with dictionaries. * 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 [30]keep rewriting your programs to keep them working (python provides scripts that help automatize this). * Quite retardedly indentation is part of syntax, that's a [31]shitty design choice that complicates programming (one liners, minification, compact code, [32]code golf, temporary debugging indentation, ...). * There is no specification per se -- but at least there is online reference (The Python Language Reference) that kind of serves as one. * It has a gigantic standard library which handles things such as [33]Unicode, [34]GUI, [35]databases, [36]regular expressions, [37]email, [38]html, [39]compression, communication with operating system, [40]networking, [41]multithreading 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. * 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. TODO: code, compare to C Links: 1. pseudocode.md 2. bloat.md 3. abstraction.md 4. interpreter.md 5. programming_language.md 6. woman.md 7. soydev.md 8. c.md 9. just_werks.md 10. maintenance.md 11. backwards_compatibility.md 12. ai.md 13. javascript.md 14. php.md 15. woman.md 16. usenet.md 17. lrs.md 18. throwaway_script.md 19. c.md 20. embedded.md 21. pseudocode.md 22. interpreter.md 23. list.md 24. string.md 25. dict.md 26. garbage_collection.md 27. oop.md 28. dictionary.md 29. data_type.md 30. maintenance.md 31. shit.md 32. golf.md 33. unicode.md 34. gui.md 35. database.md 36. regex.md 37. email.md 38. html.md 39. compression.md 40. network.md 41. multithreading.md