Functions & Modules

📊 Progress Tracking

TABLE WITHOUT ID
  "📈 Progress" as " ",
  length(filter(file.tasks, (t) => t.completed)) + "/" + length(file.tasks) + " tasks" as "Completed",
  round(length(filter(file.tasks, (t) => t.completed)) / length(file.tasks) * 100) + "%" as "Progress"
WHERE file.path = this.file.path

📋 Module Overview

Understanding functions, built-ins, and module system

Prerequisites: Data Structures & Collections

🎯 Learning Objectives

  • Master function fundamentals
  • Master built-in functions
  • Master modules & packages

📚 Tasks & Exercises

1. Function Fundamentals

  • Task 1.1: Learn function definition and calling syntax
  • Task 2.2: Master parameters: positional, keyword, default values
  • Task 3.3: Understand *args and **kwargs for variable arguments
  • Task 4.4: Practice function documentation with docstrings

Practice: Complete practical exercises for function fundamentals

2. Built-in Functions

  • Task 1.1: Master essential built-ins: len, range, enumerate, zip
  • Task 2.2: Learn map, filter, reduce for functional programming
  • Task 3.3: Practice with sorted, min, max, sum functions
  • Task 4.4: Understand type conversion functions

Practice: Complete practical exercises for built-in functions

3. Modules & Packages

  • Task 1.1: Learn import statements and module usage
  • Task 2.2: Create custom modules and packages
  • Task 3.3: Understand init.py and package structure
  • Task 4.4: Practice with standard library modules

Practice: Complete practical exercises for modules & packages

📖 Resources

Required Reading

Optional Materials

  • Explore additional resources as needed
  • Practice with real-world examples
  • Join community discussions

✅ Completion Criteria

Mark this module complete when you can:

  • Successfully complete all function fundamentals tasks

  • Successfully complete all built-in functions tasks

  • Successfully complete all modules & packages tasks

  • Apply concepts in practical scenarios

  • Explain key concepts to others

📝 Notes Section

Use this space for your personal notes and insights while learning


Previous: 02 - Data Structures & Collections | Next: 04 - Object-Oriented Programming