Skip to content

Python

In one line

Python is a high-level, readable programming language known for its simple syntax and broad use.

In simple words

Python is a general-purpose programming language prized for its clean, readable syntax. Code that takes ten lines in another language often takes three in Python. This makes it an excellent first language and a favorite for scripts, data science, web backends, and automation.

Python is interpreted — you run the code directly without a separate compile step. It is dynamically typed, so you do not declare variable types. It supports multiple paradigms: procedural, object-oriented, and functional programming styles all work naturally.

The Python ecosystem is huge. The standard library covers file I/O, networking, math, and more. Thousands of third-party packages on PyPI extend it for scientific computing (NumPy, Pandas), web development (Django, Flask), machine learning (TensorFlow, PyTorch), and much more.

Example

python
# A simple Python program
name = "Ada"
print(f"Hello, {name}!")

# Python's readable math
scores = [85, 90, 78]
average = sum(scores) / len(scores)
print(f"Average: {average}")

Python's f-strings and built-in functions like sum() and len() make code concise and readable.

Related terms

Related Resources

Related Lessons

Related Projects

Learn the fundamentals

Deepen your understanding with structured lessons on this topic.

View lessons

Decode error messages

Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.

View errors

← Back to glossary