Python Python Collections Slices sillyCase

Peng Ren
Peng Ren
4,119 Points

not sure why editor kept saying "couldn't find 'sillycase'"?

attached is my code, when checking work the editor kept showing the "can't find sillycase" message, why?

sillycase.py
def sillycase(string):
    half = round(len(string)/2)
    first_half = string[:half].lower()
    second_half = string[half:].upper()
    return(frist_half+second_half)

1 Answer

Cheo R
Cheo R
36,142 Points

Your last line has a spelling error.

Peng Ren
Peng Ren
4,119 Points

thank you! face palm