Command Palette

Search for a command to run...

Page Inspect

https://www.python.org/
Internal Links
68
External Links
59
Images
1
Headings
14

Page Content

Title:Welcome to Python.org
Description:The official home of the Python Programming Language
HTML Size:49 KB
Markdown Size:7 KB
Fetched At:November 15, 2025

Page Structure

h1Functions Defined
h1Compound Data Types
h1Intuitive Interpretation
h1All the Flow You’d Expect
h1Quick & Easy to Learn
h2Get Started
h2Download
h2Docs
h2Jobs
h2Latest News
h2Upcoming Events
h2Success Stories
h2Use Python for…
h2>>> Python Software Foundation

Markdown Content

Welcome to Python.org

**Notice:** While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.

Skip to content

▼ Close

- Python
- PSF
- Docs
- PyPI
- Jobs
- Community

▲ The Python Network

#

Donate

≡ Menu

Search This Site  GO

- **A A**
- Smaller
- Larger
- Reset

- Socialize
- LinkedIn
- Mastodon
- Chat on IRC
- Twitter

- About
- Applications
- Quotes
- Getting Started
- Help
- Python Brochure
- Downloads
- All releases
- Source code
- Windows
- macOS
- Android
- Other Platforms
- License
- Alternative Implementations
- Documentation
- Docs
- Audio/Visual Talks
- Beginner's Guide
- Developer's Guide
- FAQ
- Non-English Docs
- PEP Index
- Python Books
- Python Essays
- Community
- 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
- Success Stories
- Arts
- Business
- Education
- Engineering
- Government
- Scientific
- Software Development
- News
- Python News
- PSF Newsletter
- PSF News
- PyCon US News
- News from the Community
- Events
- Python Events
- User Group Events
- Python Events Archive
- User Group Events Archive
- Submit an Event

- \>\_ Launch Interactive Shell

- # Python 3: Fibonacci series up to n
>>> def fib(n):
>>>     a, b = 0, 1
>>>     while a < n:
>>>         print(a, end=' ')
>>>         a, b = b, a+b
>>>     print()
>>> fib(1000)
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987

# 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, {name}.')
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 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.

Start with our Beginner’s Guide

## Download

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

Latest: Python 3.14.0

## Docs

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

docs.python.org

## 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.

jobs.python.org

## Latest News

More

- 2025-11-12 Python is for everyone: Join in the PSF year-end fundraiser & membership drive!
- 2025-11-04 Connecting the Dots: Understanding the PSF’s Current Financial Outlook
- 2025-10-30 Improving security and integrity of Python package archives
- 2025-10-29 Open Infrastructure is Not Free: PyPI, the Python Software Foundation, and Sustainability
- 2025-10-28 A new PSF Board- Another year of PSF Board Office Hour sessions!

## Upcoming Events

More

- 2025-11-18 XtremePython 2025
- 2025-11-19 DELSU Tech Invasion 3.0
- 2025-11-21 Python Sul 2025
- 2025-11-25 Building an AI Agent
- 2026-01-14 Python Meeting Düsseldorf

## Success Stories

More

> Maintaining our ever-evolving Python codebase poses an intricate challenge: how do we make updates to reflect the changing rules and regulations of 200+ global markets without compromising access to the systems that our engineers and traders use on a daily basis? While an inner layer of shared business logic enables coherency in our codebase performance, it also means small regulatory changes can impact many systems. In this article, Python Engineer John Lekberg details how we use Python type annotations to minimize the time and risk involved in manual verification.

Building Robust Codebases with Python's Type Annotations *by John Lekberg*

## Use Python for…

More

- **Web Development**: Django, Pyramid, Bottle, Tornado, Flask, web2py
- **GUI Development**: tkInter, PyGObject, PyQt, PySide, Kivy, wxPython, DearPyGui
- **Scientific and Numeric**: SciPy, Pandas, IPython
- **Software Development**: Buildbot, Trac, Roundup
- **System Administration**: Ansible, Salt, OpenStack, xonsh

## \>>> Python Software Foundation

The mission of the Python Software Foundation is to promote, protect, and advance the Python programming language, and to support and facilitate the growth of a diverse and international community of Python programmers. Learn more

Become a Member Donate to the PSF

▲ Back to Top

- About
- Applications
- Quotes
- Getting Started
- Help
- Python Brochure
- Downloads
- All releases
- Source code
- Windows
- macOS
- Android
- Other Platforms
- License
- Alternative Implementations
- Documentation
- Docs
- Audio/Visual Talks
- Beginner's Guide
- Developer's Guide
- FAQ
- Non-English Docs
- PEP Index
- Python Books
- Python Essays
- Community
- 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
- Success Stories
- Arts
- Business
- Education
- Engineering
- Government
- Scientific
- Software Development
- News
- Python News
- PSF Newsletter
- PSF News
- PyCon US News
- News from the Community
- Events
- Python Events
- User Group Events
- Python Events Archive
- User Group Events Archive
- Submit an Event
- Contributing
- Developer's Guide
- Issue Tracker
- python-dev list
- Core Mentorship
- Report a Security Issue

▲ Back to Top

- Help & General Contact
- Diversity Initiatives
- Submit Website Bug
- Status

Copyright ©2001-2025.  Python Software Foundation  Legal Statements  Privacy Notice