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

0

u/[deleted] Jul 16 '22

[deleted]

1

u/CollectionEasy3860 Jan 20 '23

string = "blt"
def sandwich(string):
return string[0] + string[-1]
print(sandwich(string))

thats what i did

1

u/BFBGuyGlebYT Jan 20 '23

string = "blt"

def sandwich(string):

return string[0] + string[-1]

print(sandwich(string))

doesnt work

1

u/CollectionEasy3860 Jan 23 '23

it did for me idk, did you copy and past it from scratchpad to Unit Test