Python
Python is a powerful, high-level, open-source programming language known for its readability, versatility, and large ecosystem. It is widely used in web development, data science, automation, scripting, machine learning, and more.
π Documentation & Cheatsheetsβ
- Python Official Docs
- Python Cheatsheet 1
- Python Cheatsheet 2
- Python Cheatsheet 3
- Learn Python in Y Minutes
- Underestand Python through snippets
π οΈ Commands and Pathβ
`/usr/local/bin/python3` on macOS (Homebrew)
`/usr/bin/python3` or `/usr/local/bin/python3` on linux
`/usr/local/lib/python3.x/site-packages` macOS/Linux installed packages
python3 --version # Show Python 3 version
which python3 # Show Python 3 binary location
pip --version # Show pip version
pip list # List installed packages
pip install <package> # Install a package
pip uninstall <package> # Uninstall a package
python3 # Start Python REPL
python3 script.py # Run a Python script
pip3 install virtualenv # Venv allow you to manage dependencies for different projects separately
python3 -m venv venv # Create a virtual environment
source venv/bin/activate # Activate virtualenv (Linux/macOS)
deactivate # Deactivate virtualenv
π¦ Packages & Toolsβ
- PyPI - Python Package Index
- Pip - Package installer
- Virtualenv - Isolated environments
- PipX - Run Python applications in isolated environments
- Ruff, Pylint - Code analysis/formatting
- Pyperf - Toolkit to run Python benchmarks
π§βπ» Learning & Practiceβ
- GeekForGeek: Python Tutorial
- Python Roadmap
- Hack in science
- LeetCode
- HackerRank
- Learn and Master Python in a Month
- Geek for Geeks - DSA
- Python Certification
- Real Python
π Booksβ
- Free Python books
- Best books for learning Python
- Hitchhikerβs Guide to Python
- Automate the Boring Stuff with Python
- Dive Into Python 3
- Python for System Administrators
- Inside The Python Virtual Machine
- Problem Solving with Algorithms and Data Structures using Python
π Coursesβ
- 100 Days Of Code in Python Course
- 100 Days of DSA in Python Code
- Python and Django Full Stack Web Developer Bootcamp
- The Complete Python 3 Course: Beginner to Advanced!
π‘ Projects & Ideasβ
- 57 Fun (and Unique) Python Project Ideas
- Python projects you can build
- Python Projects
- Ideas for Python Projects
- Python Project Beginner
- Top 30 github python projects
π Interview Prepβ
- Cracking the Coding Interview
- Elements of Programming Interview in Python
π§° Useful Toolsβ
- Memray - Python memory profiler
- Awesome Python
- What Can I Do With Python?
- Data Structures and Algorithms in Python
- Official Style Guide for Python (PEP8)
- 30 Python Language Features and Tricks
π Notesβ
- Python is cross-platform and runs on Windows, macOS, and Linux.
- Use virtual environments for each project to avoid dependency conflicts.
- The Python community is large and supportive use forums, Stack Overflow, and GitHub for help.