Skip to content
Middle School Python
NY-CSDF.6-8.CT.8

Solve adjacency, filtering, copying, and ordered-uniqueness problems

Solve multi-step list problems with adjacent windows, accumulators, filtering, copying, and ordered uniqueness.

Learn the skill

  1. 1Solve multi-step list problems with adjacent windows, accumulators, filtering, copying, and ordered uniqueness.
  2. 2State mutation and empty-input preconditions explicitly.

Cited instruction

Use the publisher's material for instruction, then return to PeerTutor for the checked practice written for this skill.

Computer Science and Digital Fluency · New York State Education Department

Practice preview

What does total_all([1, 2, 2]) return? def total_all(nums): return sum(nums)

What does centered_average([1, 2, 3, 4, 100]) return? def centered_average(nums): return (sum(nums) - min(nums) - max(nums)) // (len(nums) - 2)

What does span([1, 2, 1, 1, 3]) return? def span(nums): return max(nums) - min(nums)

Open adaptive practice

Course mapping reviewed by Nikhil on 2026-08-26. Practice is authored for PeerTutor and does not reproduce linked providers' exercises.

Solve adjacency, filtering, copying, and ordered-uniqueness problems practice · PeerTutor