A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://stackoverflow.com/tags/python/info below:

'python' tag wiki - Stack Overflow

Python is a dynamically typed, multi-purpose programming language designed to be quick to learn, understand, and use, with a clean and uniform syntax. Note that Python 2 reached end-of-life on January 1, 2020. For version-specific Python questions, add the version tag (e.g. [python-3.x] or [python-3.9]). When using a Python variant (e.g. Jython, PyPy) or library (e.g. Pandas, NumPy), please include it in the tags.

Python is an interpreted, interactive, object-oriented (using classes), dynamic and strongly typed programming language that is used for a wide range of applications. It incorporates modules, exceptions, dynamic typing, very high-level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in c or c++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many Unix variants, on the Mac, and on Windows 2000 and later.

The language comes with a large standard library that covers areas such as string processing (regular expressions, Unicode, calculating differences between files), Internet protocols (HTTP, FTP, SMTP, XML-RPC, POP, IMAP, and CGI programming), software engineering (unit testing, logging, profiling, and parsing Python code), and operating system interfaces (system calls, filesystems, and TCP/IP sockets). Look at the table of contents for The Python Standard Library to get an idea of what’s available. A wide variety of third-party extensions are also available. Consult the Python Package Index to find packages of interest to you (Python Package Index is also refered to as PyPI).

Python allows programmers to express concepts in fewer lines of code than would be possible in many other languages, such as C, and the language has constructs intended to be used to create clear programs in a variety of domains.

Example:

Python program

print("Hello, Stack Overflow!")

versus

C program

#include <stdio.h>
int main(void) {
    printf("Hello, Stack Overflow!");
    return 0;
}

Python was originally created by Guido van Rossum and was first released in 1991. Guido van Rossum chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus).

Python 3 is the only supported major version as of 1 January 2020, when Python 2 was sunset. If you have a question that relates to a specific version, please consider mentioning the version and implementation that you are using when asking a question (see Tagging Recommendation section below).

Python supports multiple programming paradigms, including object-oriented, imperative, and functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl.

Like other dynamic languages, Python is often used as a scripting language but is also used in a wide range of non-scripting contexts. Using third-party tools, Python code can be packaged into stand-alone executable programs. Python interpreters are available for many operating systems.

CPython, the reference implementation of Python, is free and open-source software. It has a community-based development model, as do nearly all of its alternative implementations. There are a wide variety of implementations more suited for specific environments or tasks (see Python implementations on the Python wiki).

The philosophy of Python is succinctly formulated in The Zen of Python, written by Tim Peters, which one can read by issuing this command, in the interactive python interpreter:

>>> import this

Unlike many other languages, Python uses an indentation-based syntax (in which tabs and spaces are noninterchangeable). This may take some getting used to for programmers who are familiar with using braces.

>>> from __future__ import braces
  File "<stdin>", line 1
SyntaxError: not a chance
>>>

To help with the transition, using a properly configured text editor or IDE is recommended. Python comes with a basic IDE called IDLE (python-idle), to get you started. Other popular examples are the charityware Vim (vim), the free GNU Emacs (emacs), Eclipse+PyDev (eclipse, pydev), or PyCharm (pycharm). Take a look at this IDE comparison list for many other alternatives.

There is also a style guide for Python, named PEP 8, which aims to make Python code more readable and consistent. This guide is (should be) followed all across the Python development community.

Tagging Recommendation:

Use the python tag, for all Python-related questions. If you believe your question includes issues specific to individual versions, use python-3.x or python-2.7, in addition to the main python tag. If you believe your question may be even more specific, you can include a version-specific tag such as python-3.5 or python-3.6, etc.

Also, consider including the tag for the specific implementation (jython, pypy, etc.), if you are using one other than cpython — the use of cpython is assumed unless explicitly stated otherwise.

FAQ:

These are some of the common questions many beginners face and can serve as canonical duplicate targets:

User input: Value testing: Common errors: Dealing with lists: Dealing with dicts: General: References: Installation of External Packages: Popular general use Python libraries: Popular web frameworks based on Python:

If your question has anything to do with any of these frameworks, please ensure you include the appropriate tag.

Popular Python GUI Frameworks based on Python Popular Mathematical/Scientific computing libraries in Python Popular C extension solutions:

With C extension, you can make your python code faster. If your question has anything to do with any of the next solutions, please ensure you include the appropriate tag.

Community Chat Rooms Other Sites Free Python Programming Books Interactive Python Learning Python Online Courses Python Video Tutorials Python for Scientists Python Online IDE Code Quality Official Logo

Active Podcasts Inactive Podcasts

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4