Skip to content

curriculum: materialize readable solutions for functions and lists #50

Open

Description

@abhiksark

Motivation

The current solution files are loader stubs into _answers.py. Learners and reviewers benefit from direct, readable reference code they can inspect one exercise at a time.

Current evidence

  • solutions/functions1.py through functions10.py and solutions/lists1.py through lists10.py are part of the loader-stub migration target.
  • Reference solutions are verified by tests/integration/test_solution_verify.py.
  • The project supports Python 3.9+.

Exact scope

Replace the 20 loader stubs for functions and lists with direct teaching-quality Python source. Preserve each expected answer and keep _answers.py entries intact until the full 292-file migration is complete.

Acceptance checklist

  • solutions/functions1.py through functions10.py contain direct readable source, not loader imports or delegation.
  • solutions/lists1.py through lists10.py contain direct readable source, not loader imports or delegation.
  • Each solution preserves the behavior expected by its matching hidden check.
  • Source favors clear beginner teaching over clever compression and is Python 3.9 compatible.
  • The corresponding _answers.py entries remain unchanged for the wider staged migration.

Explicit exclusions

Do not change exercises, checks, manifest ordering, unrelated solution slices, or remove/restructure _answers.py.

Likely files

  • solutions/functions1.py … solutions/functions10.py
  • solutions/lists1.py … solutions/lists10.py

Verification

python -m pytest tests/integration/test_solution_verify.py -q
pythonlings --root tests/fixtures/passing_curriculum verify
python -m pytest -q

Also manually inspect all 20 files to ensure they are direct teaching-quality Python source.

Sprint coordination

See the sprint Discussion. This issue is unassigned and is not a reservation.

Activity

  1. coderabbitai commented on Aug 9, 2026

    @coderabbitai
    🔗 Related PRs

    #31 - feat: overall progress, completion celebration, first-launch welcome (#14, #15, #16) [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added
    documentation
    on Aug 9, 2026
  3. added
    enhancement
    good first issue
    dev sprint
    area: curriculum
    size: M
    and removed
    documentation
    on Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: curriculumdev sprintenhancementgood first issuesize: M

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions