Skip to main content

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​


πŸ› οΈ 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​


πŸ“– Books​


πŸŽ“ Courses​


πŸ’‘ Projects & Ideas​


πŸ“ Interview Prep​

  • Cracking the Coding Interview
  • Elements of Programming Interview in Python

🧰 Useful Tools​


πŸ“ 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.