Follow TV Tropes

Following

History MediaNotes / Python

Go To

OR

Is there an issue? Send a MessageReason:
None


Traditionally, interpreted languages like Python are not used to develop whole applications. Partly because the process of interpreting code is slower than the process of running code that's already been compiled into machine language. This is much less true than it once was, because after running a program once, Python stores it in "bytecode" that's been almost, but not quite, compiled into machine code. But for the most part, it's because interpreted programming languages have lacked access to the ''libraries'' that compiled programming languages had. Libraries like, say, [=OpenGL=], which allows C++ programmers to render fancy graphics without first telling the computer what a [[UsefulNotes/BitmapsSpritesAndTextures sprite]] is, and how to move it around.

to:

Traditionally, interpreted languages like Python are not used to develop whole applications. Partly because the process of interpreting code is slower than the process of running code that's already been compiled into machine language. This is much less true than it once was, because after running a program once, Python stores it in "bytecode" that's been almost, but not quite, compiled into machine code. But for the most part, it's because interpreted programming languages have lacked access to the ''libraries'' that compiled programming languages had. Libraries like, say, [=OpenGL=], which allows C++ programmers to render fancy graphics without first telling the computer what a [[UsefulNotes/BitmapsSpritesAndTextures [[MediaNotes/BitmapsSpritesAndTextures sprite]] is, and how to move it around.
Is there an issue? Send a MessageReason:
None


Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice ([[Platform/{{Unix}} UNIX-based or UNIX-like operating systems]] typically come with one and the developers maintain ports to [[Platform/MicrosoftWindows Windows]] and Platform/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to]] the [[SnakesAreSinister snake]].

to:

Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage [[MediaNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice ([[Platform/{{Unix}} UNIX-based or UNIX-like operating systems]] typically come with one and the developers maintain ports to [[Platform/MicrosoftWindows Windows]] and Platform/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to]] the [[SnakesAreSinister snake]].



It is in this last area that Python breaks the mold. Python has extensions that are written in other languages, but unlike those previous languages, Python extensions can be generated ''automatically'' from existing [[UsefulNotes/TheCLanguage C]] code, and with only a little extra work, you can use Python itself to tidy up the interface so that people who don't like [[UsefulNotes/TheCLanguage C]] can use the library anyway.

to:

It is in this last area that Python breaks the mold. Python has extensions that are written in other languages, but unlike those previous languages, Python extensions can be generated ''automatically'' from existing [[UsefulNotes/TheCLanguage [[MediaNotes/TheCLanguage C]] code, and with only a little extra work, you can use Python itself to tidy up the interface so that people who don't like [[UsefulNotes/TheCLanguage [[MediaNotes/TheCLanguage C]] can use the library anyway.



Python is distinguished by its near-complete lack of braces. Where other programming languages require you to partition your blocks of code using punctuation, Python looks at how it's indented. Other languages are ''customarily'' indented to indicate how they're organized, but in Python, that's an actual ''rule of the language'' that you have to follow, or your program won't work. This frequently makes Python programs more readable than their equivalents in UsefulNotes/JavaScript and the like, and readability is one of the goals of the language, as mentioned on the UsefulNotes/ProgrammingLanguage article.

to:

Python is distinguished by its near-complete lack of braces. Where other programming languages require you to partition your blocks of code using punctuation, Python looks at how it's indented. Other languages are ''customarily'' indented to indicate how they're organized, but in Python, that's an actual ''rule of the language'' that you have to follow, or your program won't work. This frequently makes Python programs more readable than their equivalents in UsefulNotes/JavaScript MediaNotes/JavaScript and the like, and readability is one of the goals of the language, as mentioned on the UsefulNotes/ProgrammingLanguage MediaNotes/ProgrammingLanguage article.
Is there an issue? Send a MessageReason:
Page was movedfrom Useful Notes.Python to Media Notes.Python. Null edit to update page.
Is there an issue? Send a MessageReason:
None


And a rather good, freely available instructional book: [[http://greenteapress.com/thinkpython/ Python for Software Design: How to Think like a Computer Scientist]].

to:

And a rather good, freely available instructional book: [[http://greenteapress."[[http://greenteapress.com/thinkpython/ Python for Software Design: How to Think like a Computer Scientist]].Scientist]]" is a rather good, freely available instructional book, and [[https://www.w3schools.com/python/default.asp W3Schools.com]] has extensive and detailed information on the language.

Added: 260

Changed: 108

Removed: 2

Is there an issue? Send a MessageReason:
Removed the gray text, and added the bit about while loops.


@@[[purple:print]][[gray:(]][[green:"Hello World!"]][[gray:)]]\\

to:

@@[[purple:print]][[gray:(]][[green:"Hello World!"]][[gray:)]]\\@@[[purple:print]]([[green:"Hello World!"]])\\



@@[[gray:a = 10]]\\
[[gray:b = 7]]\\
[[gray:c = ]][[green:"Bob"]]\\\
[[purple:print]][[gray:(a + b)]]\\

to:

@@[[gray:a @@a = 10]]\\
[[gray:b
10\\
b
= 7]]\\
[[gray:c
7\\
c
= ]][[green:"Bob"]]\\\
[[purple:print]][[gray:(a
[[green:"Bob"]]\\\
[[purple:print]](a
+ b)]]\\b)\\



[[purple:print]][[gray:(b + c)]]\\

to:

[[purple:print]][[gray:(b [[purple:print]](b + c)]]\\c)\\



[[purple:print]][[gray:(]][[green:"Hello, "]][[gray: + c)]]\\

to:

[[purple:print]][[gray:(]][[green:"Hello, "]][[gray: [[purple:print]]([[green:"Hello, "]] + c)]]\\c)\\



@@[[gold:for]] [[gray:i]] [[gold:in]] [[purple:range]][[gray:(0, 10):]]\\
[[purple:print]][[gray:(i)]]\\

to:

@@[[gold:for]] [[gray:i]] i [[gold:in]] [[purple:range]][[gray:(0, 10):]]\\
[[purple:print]][[gray:(i)]]\\
[[purple:range]](0, 10):\\
[[purple:print]](i)\\



\\


Added DiffLines:

!!!While loops
@@i = 0\\
[[gold:while]] i < 10:\\
[[purple:print]](i)\\
i += 1\\
@@
In addition to for loops, Python also has while loops, which execute what's in them so long as the condition remains true. This snippet likewise prints out the numbers 0 through 9.
Is there an issue? Send a MessageReason:
None


The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses. Cementing its status as a SpiritualSuccessor to BASIC, Python is ubiquitous on modern graphing calculators. It's also popular for scientific computing with the [=NumPy=], [=SymPy=], and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.

to:

The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 2, 2.0 and 2.0 "2" is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses. Cementing its status as a SpiritualSuccessor to BASIC, Python is ubiquitous on modern graphing calculators. It's also popular for scientific computing with the [=NumPy=], [=SymPy=], and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.
Is there an issue? Send a MessageReason:
None


The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses, as well as on graphing calculators. It's also popular for scientific computing with the [=NumPy=], [=SymPy=], and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.

to:

The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses, courses. Cementing its status as well as a SpiritualSuccessor to BASIC, Python is ubiquitous on modern graphing calculators. It's also popular for scientific computing with the [=NumPy=], [=SymPy=], and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.
Is there an issue? Send a MessageReason:
None


* UsefulNotes/RenPy is for VisualNovel games.

to:

* UsefulNotes/RenPy MediaNotes/RenPy is for VisualNovel games.
Is there an issue? Send a MessageReason:
None


The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses, as well as on graphing calculators. It's also popular for scientific computing with the [=NumPy=] and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.

to:

The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses, as well as on graphing calculators. It's also popular for scientific computing with the [=NumPy=] [=NumPy=], [=SymPy=], and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.
Is there an issue? Send a MessageReason:
None


The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses. It's also popular for scientific computing with the [=NumPy=] and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.

to:

The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses.courses, as well as on graphing calculators. It's also popular for scientific computing with the [=NumPy=] and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.

Added: 17

Changed: 25

Is there an issue? Send a MessageReason:
None


[[foldercontrol]]



[[gray:c = ]][[green:"hi"]]\\\

to:

[[gray:c = ]][[green:"hi"]]\\\]][[green:"Bob"]]\\\



[[red:# The correct way would be print(str(b) + c), which outputs 7hi]]\\\
[[purple:print]][[gray:(]][[green:"Hello and "]][[gray: + c)]]\\
[[red:# Outputs Hello and hi]]\\

to:

[[red:# The correct way would be print(str(b) + c), which outputs 7hi]]\\\
[[purple:print]][[gray:(]][[green:"Hello and
7Bob]]\\\
[[purple:print]][[gray:(]][[green:"Hello,
"]][[gray: + c)]]\\
[[red:# Outputs Hello and hi]]\\Hello, Bob]]\\
Is there an issue? Send a MessageReason:
None


The program will output numbers 0 through 9, but not 10. This example also highlights pythons famous bracket-less syntax. Python uses a colon (:) instead of a left bracket ({) and uses the code's formating to figure out the rest.

to:

The program will output numbers 0 through 9, but not 10. 10 -- and the 0 in the parentheses can be dropped and it'll execute the same way. This code example also highlights pythons Python's famous bracket-less syntax. Python uses a colon (:) instead of a left bracket ({) and uses the code's formating to figure out the rest.
Is there an issue? Send a MessageReason:
None


[[red:# The correct way would be print(str(b) + c)]]\\\

to:

[[red:# The correct way would be print(str(b) + c)]]\\\c), which outputs 7hi]]\\\
Is there an issue? Send a MessageReason:
None


The program will output numbers 0 thru 9. This example also highlights pythons famous bracket-less syntax. Python uses a colon (:) instead of a left bracket ({) and uses the code's formating to figure out the rest.

to:

The program will output numbers 0 thru 9.through 9, but not 10. This example also highlights pythons famous bracket-less syntax. Python uses a colon (:) instead of a left bracket ({) and uses the code's formating to figure out the rest.
Is there an issue? Send a MessageReason:
None


The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses.

to:

The language takes pains to prevent the programmer from having to worry about memory management: it has an automatic garbage collector, meaning you don't have to worry about deleting variables after you're done with them; all variables are technically "pointers," but some types of variable can't be modified after they're created, which prevents issues that arise in C++ and the like where you don't know whether you're dealing with a variable or its EvilTwin; it handles type conversion automatically, meaning the difference between 2 and 2.0 is only as important as you want it to be; and the variable declarations that are used in most other languages to define what type of data a variable will hold are entirely absent from Python, where you "declare" a variable by assigning a value to it. Because of the ease of programming in Python and its clean syntax, it's replaced BASIC as the first language of many new coders, as well as Pascal and LISP in introductory university computer science courses. \n It's also popular for scientific computing with the [=NumPy=] and [=SciPy=] libraries, giving Mathematica and MATLAB a run for their money.
Is there an issue? Send a MessageReason:
None


[[gray:c = ]][[green:"hi"]]\\

to:

[[gray:c = ]][[green:"hi"]]\\]][[green:"hi"]]\\\



[[red:# Outputs 17]]\\

to:

[[red:# Outputs 17]]\\17]]\\\



[[red:# The correct way would be print(str(b) + c)]]\\

to:

[[red:# The correct way would be print(str(b) + c)]]\\c)]]\\\
Is there an issue? Send a MessageReason:
None


Python is distinguished by its near-complete lack of braces. Where other programming languages require you to partition your blocks of code using punctuation, Python looks at how it's indented. Other languages are ''customarily'' indented to indicate how they're organized, but in Python, that's an actual ''rule of the language'' that you have to follow, or your program won't work. This frequently makes Python programs more readable than their equivalents in [=JavaScript=] and the like, and readability is one of the goals of the language, as mentioned on the UsefulNotes/ProgrammingLanguage article.

to:

Python is distinguished by its near-complete lack of braces. Where other programming languages require you to partition your blocks of code using punctuation, Python looks at how it's indented. Other languages are ''customarily'' indented to indicate how they're organized, but in Python, that's an actual ''rule of the language'' that you have to follow, or your program won't work. This frequently makes Python programs more readable than their equivalents in [=JavaScript=] UsefulNotes/JavaScript and the like, and readability is one of the goals of the language, as mentioned on the UsefulNotes/ProgrammingLanguage article.
Is there an issue? Send a MessageReason:
None


Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice ([[UsefulNotes/{{Unix}} UNIX-based or UNIX-like operating systems]] typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows Windows]] and UsefulNotes/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to]] the [[SnakesAreSinister snake]].

to:

Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice ([[UsefulNotes/{{Unix}} ([[Platform/{{Unix}} UNIX-based or UNIX-like operating systems]] typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows [[Platform/MicrosoftWindows Windows]] and UsefulNotes/MacOS) Platform/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to]] the [[SnakesAreSinister snake]].
Is there an issue? Send a MessageReason:
None

Added DiffLines:

----
->''Beautiful is better than ugly.\\
Explicit is better than implicit.\\
Simple is better than complex.\\
Complex is better than complicated.\\
Flat is better than nested.\\
Sparse is better than dense.\\
Readability counts.\\
Special cases aren't special enough to break the rules.\\
Although practicality beats purity.\\
Errors should never pass silently.\\
Unless explicitly silenced.\\
In the face of ambiguity, refuse the temptation to guess.\\
There should be one[=--=] and preferably only one [=--=]obvious way to do it.\\
Although that way may not be obvious at first unless you're Dutch.\\
Now is better than never.\\
Although never is often better than *right* now.\\
If the implementation is hard to explain, it's a bad idea.\\
If the implementation is easy to explain, it may be a good idea.\\
Namespaces are one honking great idea [=--=] let's do more of those!''
-->-- '''Tim Peters'''' ''[[https://en.wikipedia.org/wiki/Zen_of_Python Zen of Python]]'', a set of guiding principles for the language
Is there an issue? Send a MessageReason:
None


Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice (UsefulNotes/{{Unix}}-based or Unix-like operating systems typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows Windows]] and UsefulNotes/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to the snake]].

to:

Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice (UsefulNotes/{{Unix}}-based ([[UsefulNotes/{{Unix}} UNIX-based or Unix-like UNIX-like operating systems systems]] typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows Windows]] and UsefulNotes/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant no relations to to]] the [[SnakesAreSinister snake]].
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* The {{Roguelike}} development library libtcod, originally made with C++, has [[https://python-tcod.readthedocs.io/en/latest/ a Python port]].
Is there an issue? Send a MessageReason:
Adding Pandas, Django, and Flask. This includes example works for the latter two.

Added DiffLines:

* [[https://pandas.pydata.org/ Pandas]] is commonly used in data analysis.
* [[https://www.djangoproject.com/ Django]] and [[https://flask.palletsprojects.com/en/2.0.x/ Flask]] are both used for creating websites and web applications.


Added DiffLines:

* Website/{{Reddit}} is written in Python, using the Pylons framework.
* Instagram is written in Django, a Python framework for websites and web apps.
* Pinterest and [=LinkedIn=] use Flask, another Python framework for websites and web apps.
Is there an issue? Send a MessageReason:
None


Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice (UsefulNotes/{{Unix}}-based or Unix-like operating systems typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows Windows]] and UsefulNotes/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The name is a reference to ''Series/MontyPythonsFlyingCircus'', [[JustForFun/IThoughtItMeant not the snake]].

to:

Python is an [[https://en.wikipedia.org/wiki/Interpreted_language interpreted]], [[https://en.wikipedia.org/wiki/Dynamic_programming_language dynamically typed]] [[UsefulNotes/ProgrammingLanguage programming language]]. That means its programs are text files. To execute a Python program, you run a program called an interpreter that reads a text file full of Python code, and does what it says, and as long as an interpreter is available for one's platform of choice (UsefulNotes/{{Unix}}-based or Unix-like operating systems typically come with one and the developers maintain ports to [[UsefulNotes/MicrosoftWindows Windows]] and UsefulNotes/MacOS) the operating system and architecture are largely irrelevant since compilation isn't required. The language's name is a reference to ''Series/MontyPythonsFlyingCircus'', LineOfSightName derived from ''Series/MontyPythonsFlyingCircus''; [[JustForFun/IThoughtItMeant not no relations to the snake]].
Is there an issue? Send a MessageReason:
2.x isn't supported, so the wording can be changed now


Note that currently the Python Software Foundation maintains two very different versions of Python; the 2.7 branch is backward compatible with older code and would be better for old-school Python programmers who don't want to update their code, while the 3.x branch made several major changes to the language that are often incompatible with older code. If you're new to the language (or are new to programming in general and chose Python as a first language), looking into version 3 is recommended, as it has an increasing number of features not present in 2.7. Fortunately, it isn't hard to find books that cover both; for example, the popular computer book publisher O'Reilly Media currently covers both branches in its books, ''Learning Python'' (which is intended for newcomers to the language) and ''Programming Python'' (which is aimed at more advanced Python programmers).

to:

Note that currently while the Python Software Foundation maintains two very different current versions of Python; the 2.7 branch is backward compatible with older Python (the 3.x branch) are recommended for most purposes, code and would examples can still be better found which are written for old-school Python programmers who don't want to update their code, while the 3.x branch made several major changes to the language that are often incompatible with older code. If you're new to 2.7 branch, which was supported as late as 2020. This distinction will seldom affect online examples, but when investigating physical books, it is worth checking that it uses the language (or are new to programming in general current syntax and chose Python as a first language), looking into version 3 is recommended, as it has an increasing number of features not present in 2.7.features. Fortunately, it isn't hard to find books that cover both; for example, the popular computer book publisher O'Reilly Media currently covers both branches in its books, ''Learning Python'' (which is intended for newcomers to the language) and ''Programming Python'' (which is aimed at more advanced Python programmers).
Is there an issue? Send a MessageReason:
None


Python therefore supports a bafflingly large array if functions, which Python programmers can tie together to make whole new programs without touching C [[note]] which the official interpreter, occasionally called [=CPython=] to distinguish it from unofficial interpreters that may be written in another language, is written in, but doesn't require knowledge of to simply use; decent knowledge of C would be required to work on the official interpreter but not the code it works with unless said code uses extensions written in C[[/note]].

to:

Python therefore supports a bafflingly large array if of functions, which Python programmers can tie together to make whole new programs without touching C [[note]] which the official interpreter, occasionally called [=CPython=] to distinguish it from unofficial interpreters that may be written in another language, is written in, but doesn't require knowledge of to simply use; decent knowledge of C would be required to work on the official interpreter but not the code it works with unless said code uses extensions written in C[[/note]].

Top