This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a Quarto Book project titled "Python Step by Step: Learning with AI" - a revolutionary approach to teaching Python programming where AI is embraced as a learning partner, not avoided. The book's philosophy is "Master Python by Learning How to Think With AI."
- Preview the book (with live reload):
quarto preview - Build HTML version:
quarto render --to html - Build PDF version:
quarto render --to pdf - Build all formats:
quarto render
- Enhanced HTML:
quarto render --profile html - Professional PDF:
quarto render --profile pdf - E-reader EPUB:
quarto render --profile epub
"Learning with AI" Approach:
- Each chapter starts with concepts, not syntax
- AI is used as an exploration tool throughout
- Focus on mental models and patterns
- Students learn to be architects who guide AI
- Part 0: Your AI Learning Partnership
- Part I: Computational Thinking (Weeks 1-4) - Concepts: I/O, Storage, Decisions, Patterns
- Part II: Building Systems (Weeks 5-8) - Modularity, Data Structures, Persistence, Integration
- Part III: Real-World Programming (Weeks 9-12) - Data, APIs, Interaction, Architecture
- Part IV: Your Journey Forward
- The Concept First - No code, just understanding
- Understanding Through Real Life - Relatable examples
- Discovering with Your AI Partner - Exploration prompts
- From Concept to Code - Syntax emerges from need
- Mental Model Building - Visual/conceptual understanding
- Prompt Evolution Exercise - Core skill development
- Common AI Complications - What AI typically overcomplicates
- Exercises - New types: Concept Recognition, Prompt Engineering, Pattern Matching, Model Building, Architect First
- Understand the Concept Before the Code
- Use AI to Explore, Not to Avoid Learning
- Build Mental Models, Not Just Working Programs
- Weeks 1-4: AI as Concept Explorer
- Weeks 5-8: AI as Implementation Assistant
- Weeks 9-12: AI as Code Producer (Student as Architect)
- Concept Recognition - Identify patterns without code
- Prompt Engineering - Develop AI communication skills
- Pattern Matching - Find concepts in complex code
- Model Building - Create mental models
- Architect First - Design before implementation
references.bib- Bibliography in BibTeX formatcover.png- Book cover imagenotes/python-step-by-step-book.md- Detailed book outlinenotes/smaple-chapter-0.md- Sample chapter (note typo in filename)notes/smaple-chapter-1.md- Sample chapter (note typo in filename)- Templates in
/templates/for consistent content creation
- Concepts First: Each topic starts with understanding, not syntax
- AI Integration: AI is used throughout as a learning tool
- Prompt Evolution: Students learn to communicate effectively with AI
- Mental Models: Focus on how things work, not just making them work
- Architect Mindset: Students design solutions, AI helps implement
- Start with real-world concept explanation
- Use AI exploration prompts to discover patterns
- Show AI's overcomplicated version first
- Guide toward simplified understanding
- Build mental models before showing syntax
- Focus on understanding over implementation
- Include prompt engineering practice
- Emphasize pattern recognition
- Require design before coding
- Use AI as a learning partner, not answer generator
- Add "Expression Explorer" callout boxes when introducing operators
- Focus on patterns and behavior, not syntax memorization
- Encourage AI exploration with specific prompts
- Show how same operators work differently with different types
- Keep explanations brief and discovery-oriented
- Students architect solutions first
- AI assists with implementation
- Focus on simplification and understanding
- Reflection on AI partnership experience
- The book acknowledges AI can write code faster, but positions students as architects
- Every chapter should reinforce: "You're learning to think, AI helps you build"
- Avoid "don't use AI" messaging - instead show how to use it effectively
- Examples should demonstrate prompt evolution and simplification