Middle School Python
NY-CSDF.6-8.CT.7
Index, slice, and transform strings
Use indexing, slicing, length, concatenation, membership, and simple string methods.
Learn the skill
- 1Use indexing, slicing, length, concatenation, membership, and simple string methods.
- 2Predict off-by-one behavior before coding.
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 DepartmentPractice preview
For word = "python", what is word[0]?
For word = "python", what is word[-1]?
For word = "python", what is word[1:4]?
Course mapping reviewed by Nikhil on 2026-08-26. Practice is authored for PeerTutor and does not reproduce linked providers' exercises.