Here I am stuck again unable to pass the challenge.
wrd = ["treehouse"] def sillycase(word): for word in word: print word[:4] + word[-5:].upper() return sillycase(wrd)
thanks in advance!
No need to loop here, you can accomplish this with string slicing.
def sillycase(s): return s[:len(s)//2].lower() + s[len(s)//2:].upper()