Question 6 • SC-Fundamentals of Computing - Content Recovery - Design & Development
Python string slices use square brackets, and the ending index is excluded. So `blanks[:n]` keeps the characters before index n, `letter` replaces the character at n, and `blanks[n+1:]` keeps the characters after it. This makes A, `blanks = blanks[:n] + letter + blanks[n+1:]`, the correct line.
AI-written and checked against the verified answer.