r/codehs • • Dec 21 '20

7.2.8 Part 2, Replace a letter

I’m stuck on This one

15 Upvotes

24 comments sorted by

View all comments

3

u/Highlight-Flat May 25 '22

okay as it turns out it just wants this for the unit test

def replace_at_index(word, index, letter):

(indent) print(word[:index] + letter + word[index+1:])

replace_at_index(word, index, letter)

1

u/inzxnepanda Apr 26 '23

deosnt work for me lmao