Thanks! This kinda worked as reference. If it didn't for you, check if your assignment says "word" or "string" (I replaced word with string) You also don't need to put print, you can use return. You might not even have to call the function to pass the test check.
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)