This repository contains my personal notes on Python, organized and written in LaTeX. It's designed as a structured reference for quickly understanding Python concepts, syntax, and common use cases. Whether you're a beginner or revisiting Python, this document provides summarized explanations with examples.
📁 Repository Map – Where to Find What
🚩 Start Here: The main compiled document is
📄 document.pdf – This is the core PDF of all Python notes.
📦 Exercises & Questions:
📁 questions/ – Contains all practice problems and topic-wise exercises.
📄 questions.pdf – A single PDF with all questions compiled.
🧠 All .py code examples are organized in Python_Files/ and referenced from the LaTeX document.
- Format: PDF generated from LaTeX
- Content: Core Python topics with examples, syntax highlights, and summary tables
- Purpose: For learning, revision, and teaching purposes
- Clean, structured layout using LaTeX
- Code examples in separate files
- Covers fundamental and intermediate Python topics
- Easy to expand as new topics are added
This project uses the minted package for syntax-highlighted code blocks in LaTeX. Follow these steps to compile successfully:
Make sure you have Python installed, then run:
pip install PygmentsThe LaTeX file must be compiled with the --shell-escape flag enabled. Example:
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape your_file.texIf using TeXstudio, use this custom command:
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape %.tex | txs:///view-pdf
⚠️ Without--shell-escape, themintedcode blocks will not render correctly.
This project is licensed under the MIT License.
Siddhart Patel
Student at HTW Berlin, Lab Assistant, and Python Instructor
Website • Email
"Simple code. Clear logic. Powerful understanding."