Какая версия питона актуальная

Functions Defined

The core of extensible programming is defining functions. Python allows mandatory and optional arguments, keyword arguments, and even arbitrary argument lists. More about defining functions in Python 3

# Python 3: List comprehensions >>> fruits = ['Banana', 'Apple', 'Lime'] >>> loud_fruits = [fruit.upper() for fruit in fruits] >>> print(loud_fruits) ['BANANA', 'APPLE', 'LIME'] # List and the enumerate function >>> list(enumerate(fruits)) [(0, 'Banana'), (1, 'Apple'), (2, 'Lime')]

Compound Data Types

Lists (known as arrays in other languages) are one of the compound data types that Python understands. Lists can be indexed, sliced and manipulated with other built-in functions. More about lists in Python 3

# Python 3: Simple arithmetic >>> 1 / 2 0.5 >>> 2 ** 3 8 >>> 17 / 3 # classic division returns a float 5.666666666666667 >>> 17 // 3 # floor division 5

Intuitive Interpretation

Calculations are simple with Python, and expression syntax is straightforward: the operators + , — , * and / work as expected; parentheses () can be used for grouping. More about simple math functions in Python 3.

# For loop on a list >>> numbers = [2, 4, 6, 8] >>> product = 1 >>> for number in numbers: . product = product * number . >>> print('The product is:', product) The product is: 384

All the Flow You’d Expect

Python knows the usual control flow statements that other languages speak — if , for , while and range — with some of its own twists, of course. More control flow tools in Python 3

# Simple output (with Unicode) >>> print("Hello, I'm Python!") Hello, I'm Python! # Input, assignment >>> name = input('What is your name?\n') What is your name? Python >>> print(f'Hi, .') Hi, Python. 

Quick & Easy to Learn

Experienced programmers in any other language can pick up Python very quickly, and beginners find the clean syntax and indentation structure easy to learn. Whet your appetite with our Python 3 overview.

Читайте также:  Python очистить txt файл

Python is a programming language that lets you work quickly and integrate systems more effectively. Learn More

Get Started

Whether you’re new to programming or an experienced developer, it’s easy to learn and use Python.

Download

Python source code and installers are available for download for all versions!

Docs

Documentation for Python’s standard library, along with tutorials and guides, are available online.

Jobs

Looking for work or have a Python related position that you’re trying to hire for? Our relaunched community-run job board is the place to go.

Latest News

Источник

Status of Python Versions#

The main branch is currently the future Python 3.13, and is the only branch that accepts new features. The latest release for each Python version can be found on the download page.

Python Release Cycle#

Supported Versions#

Branch Schedule Status First release End of life Release manager
main PEP 719 feature 2024-10-01 2029-10 Thomas Wouters
3.12 PEP 693 prerelease 2023-10-02 2028-10 Thomas Wouters
3.11 PEP 664 bugfix 2022-10-24 2027-10 Pablo Galindo Salgado
3.10 PEP 619 security 2021-10-04 2026-10 Pablo Galindo Salgado
3.9 PEP 596 security 2020-10-05 2025-10 Łukasz Langa
3.8 PEP 569 security 2019-10-14 2024-10 Łukasz Langa

Unsupported Versions#

Branch Schedule Status First release End of life Release manager
3.7 PEP 537 end-of-life 2018-06-27 2023-06-27 Ned Deily
3.6 PEP 494 end-of-life 2016-12-23 2021-12-23 Ned Deily
3.5 PEP 478 end-of-life 2015-09-13 2020-09-30 Larry Hastings
3.4 PEP 429 end-of-life 2014-03-16 2019-03-18 Larry Hastings
3.3 PEP 398 end-of-life 2012-09-29 2017-09-29 Georg Brandl, Ned Deily (3.3.7+)
3.2 PEP 392 end-of-life 2011-02-20 2016-02-20 Georg Brandl
3.1 PEP 375 end-of-life 2009-06-27 2012-04-09 Benjamin Peterson
3.0 PEP 361 end-of-life 2008-12-03 2009-06-27 Barry Warsaw
2.7 PEP 373 end-of-life 2010-07-03 2020-01-01 Benjamin Peterson
2.6 PEP 361 end-of-life 2008-10-01 2013-10-29 Barry Warsaw

Status Key#

feature : new features, bugfixes, and security fixes are accepted. prerelease : feature fixes, bugfixes, and security fixes are accepted for the upcoming feature release. bugfix : bugfixes and security fixes are accepted, new binaries are still released. (Also called maintenance mode or stable release) security : only security fixes are accepted and no more binaries are released, but new source-only versions can be released end-of-life : release cycle is frozen; no further changes can be pushed to it. See also the Development Cycle page for more information about branches. By default, the end-of-life is scheduled 5 years after the first release, but can be adjusted by the release manager of each branch. All Python 2 versions have reached end-of-life.

Источник

Download the latest version of Python

Bloomberg logo Meta logo Google logo

All Python releases are Open Source. Historically, most, but not all, Python releases have also been GPL-compatible. The Licenses page details GPL-compatibility and Terms and Conditions.

Sources

For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.

Download the latest Python 3 source.

Alternative Implementations

This site hosts the «traditional» implementation of Python (nicknamed CPython). A number of alternative implementations are available as well.

History

Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum in the Netherlands as a successor of a language called ABC. Guido remains Python’s principal author, although it includes many contributions from others.

Release Schedules

See Status of Python Versions for all an overview of all versions, including unsupported.

Information about specific ports, and developer info

OpenPGP Public Keys

Source and binary executables are signed by the release manager or binary builder using their OpenPGP key. Release files for currently supported releases are signed by the following:

  • Thomas Wouters (3.12.x and 3.13.x source files and tags) (key id: A821E680E5FA6305)
  • Pablo Galindo Salgado (3.10.x and 3.11.x source files and tags) (key id: 64E628F8D684696D)
  • Steve Dower (Windows binaries) (key id: FC62 4643 4870 34E5)
  • Łukasz Langa (3.8.x and 3.9.x source files and tags) (key id: B269 95E3 1025 0568)
  • Ned Deily (macOS binaries, 3.7.x / 3.6.x source files and tags) (key ids: 2D34 7EA6 AA65 421D, FB99 2128 6F5E 1540, and Apple Developer ID DJ3H93M7VJ)
  • Larry Hastings (3.5.x source files and tags) (key id: 3A5C A953 F73C 700D)
  • Benjamin Peterson (2.7.z source files and tags) (key id: 04C3 67C2 18AD D4FF and A4135B38)

Release files for older releases which have now reached end-of-life may have been signed by one of the following:

  • Anthony Baxter (key id: 0EDD C5F2 6A45 C816)
  • Georg Brandl (key id: 0A5B 1018 3658 0288)
  • Martin v. Löwis (key id: 6AF0 53F0 7D9D C8D2)
  • Ronald Oussoren (key id: C9BE 28DE E6DF 025C)
  • Barry Warsaw (key ids: 126E B563 A74B 06BF, D986 6941 EA5B BD71, and ED9D77D5)

You can import a person’s public keys from a public keyserver network server you trust by running a command like:

or, in many cases, public keys can also be found at keybase.io. On the version-specific download pages, you should see a link to both the downloadable file and a detached signature file. To verify the authenticity of the download, grab both files and then run this command:

gpg --verify Python-3.6.2.tgz.asc

Note that you must use the name of the signature file, and you should use the one that’s appropriate to the download you’re verifying.

Other Useful Items

  • Looking for 3rd party Python modules? The Package Index has many of them.
  • You can view the standard documentation online, or you can download it in HTML, PostScript, PDF and other formats. See the main Documentation page.
  • Information on tools for unpacking archive files provided on python.org is available.
  • Tip: even if you download a ready-made binary for your platform, it makes sense to also download the source. This lets you browse the standard library (the subdirectory Lib) and the standard collections of demos (Demo) and tools (Tools) that come with it. There’s a lot you can learn from the source!
  • There is also a collection of Emacs packages that the Emacsing Pythoneer might find useful. This includes major modes for editing Python, C, C++, Java, etc., Python debugger interfaces and more. Most packages are compatible with Emacs and XEmacs.

Want to contribute?

Want to contribute? See the Python Developer’s Guide to learn about how Python development is managed.

  • About
    • Applications
    • Quotes
    • Getting Started
    • Help
    • Python Brochure
    • All releases
    • Source code
    • Windows
    • macOS
    • Other Platforms
    • License
    • Alternative Implementations
    • Docs
    • Audio/Visual Talks
    • Beginner’s Guide
    • Developer’s Guide
    • FAQ
    • Non-English Docs
    • PEP Index
    • Python Books
    • Python Essays
    • Diversity
    • Mailing Lists
    • IRC
    • Forums
    • PSF Annual Impact Report
    • Python Conferences
    • Special Interest Groups
    • Python Logo
    • Python Wiki
    • Code of Conduct
    • Community Awards
    • Get Involved
    • Shared Stories
    • Arts
    • Business
    • Education
    • Engineering
    • Government
    • Scientific
    • Software Development
    • Python News
    • PSF Newsletter
    • PSF News
    • PyCon US News
    • News from the Community
    • Python Events
    • User Group Events
    • Python Events Archive
    • User Group Events Archive
    • Submit an Event
    • Developer’s Guide
    • Issue Tracker
    • python-dev list
    • Core Mentorship
    • Report a Security Issue

    Источник

    Какой python выбрать в 2023?

    Какой python выбрать в 2023?

    Понятно, что это будет не последняя версия Python. Может быть несколько способов установить python в базовой системе Linux, и все зависит от вашей системы Linux. Почти для каждой системы Linux следующие команды определенно будут работать.

    $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.11.0 Установите последнюю версию Python на macOS / macOS X Чтобы установить python, просто откройте приложение «Терминал» из «Приложение» -> «Утилиты» и введите следующую команду.

    Какой python выбрать в 2023?

    Чтобы проверить установку, введите следующие команды в приложении «Терминал».

    Какой python выбрать в 2023?

    Как установить Python на Windows?
    Поскольку Windows не поставляется с предустановленным Python, его необходимо установить явно. Здесь мы определим пошаговое руководство по установке Python в Windows. Выполните следующие действия:

    Загрузите последнюю версию Python с сайта python.org.
    Шаг 1. Первый и самый важный шаг — открыть браузер и ввести https://www.python.org/downloads/windows/

    Шаг 2. В разделе «Выпуски Python для Windows» найдите последнюю версию Python 3 — Python 3.10.5 (на данный момент последней стабильной версией является Python 3.11)

    Какой python выбрать в 2023?

    Результаты перевода

    Перевод

    Шаг 3: На этой странице перейдите в раздел «Файлы» и щелкните исполняемый установщик Windows x86-64 для 64-разрядной версии или исполняемый установщик Windows x86 для 32-разрядной версии.

    Какой python выбрать в 2023?

    Здесь мы распишем процесс установки Python 3.11 в Windows.
    Запустите установщик Python, чтобы узнать, как установить python в папку загрузок Windows.
    Обязательно отметьте Добавить Python 3.11 в PATH, иначе вам придется делать это явно. Он начнет установку Python в Windows.

    Какой python выбрать в 2023?

    После завершения установки нажмите «Закрыть». Бинго. Питон установлен.

    Источник

Оцените статью