Python is high-level interpreted, programming language. It supports procedural, object-oriented and functional programming paradigms.
Python is dynamically typed, although since 3.5 it added a module to support type hints. Linters such as Ruff, Flake8, isort or Black.
Python much like Node.js, has it's own package manager, pip, and it's alternatives, the industry standard being Poetry, and the newcomer being uv
Use Cases
Web Dev
Data Sci & Machine Learning
Scientific Computing
Gamedev
Syntax
- Indentation: Python uses indentation to define code blocks, in the Python style guide it's recommended to keep it at 4 spaces.
- Functions: Defined using the
defkeyword, such as:
def greet(name):
return f"Hello, {name}!"
- List, Dictionaries an Tuples: Built-in data structures for collections.
fruits = ["apple", "banana", "cherry"] # List - mutable, ordered
person = {"name": "Alice", "age": 30} # Dictionary - mutable, key-value pairs
coordinates = (10, 20) # Tuple - immutable, ordered
History
- Created by Guido van Rossum and first released in 1991.
- Python 2.x was widely used but reached end-of-life in 2020.
- Python 3.x is the current version, with ongoing updates and improvements.
Connections:
- Wiretap
- Boot dev - Learn to Code in Python
- Boot dev - Build a Bookbot in Python
- String in Python
- Pydantic
- Ruff
- FastAPI
- SQLAlchemy
Sources:
- Python Software Foundation. "Python.org."
- McKinney, Wes. "Python for Data Analysis."
- Lutz, Mark. "Learning Python."
- From: LearnPython
#Python #Programming #SoftwareDevelopment #DataScience #Automation