Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Collections (2016, retired 2019) Slices sillyCase

i am getting error "Bummer Try again" but the result is correct

def sillycase(st): ln = int (len(st)/2) letters = list(st) list1= letters[0:(ln)] list2 = letters[(ln):] str1 = "" str2 = "" for item in list1: str1 += item for item in list2: str2 += item return str1.lower()+str2.upper()

sillycase.py
def sillycase(st):
    ln = int (len(st)/2)
    letters = list(st)
    list1= letters[0:(ln)]
    list2 = letters[(ln):]
    str1 = ""
    str2 = ""
    for item in list1:
        str1 += item
    for item in list2:
        str2 += item
    return str1.lower()+str2.upper()
nakalkucing
nakalkucing
12,964 Points

Hi Rujuta! I copied your code into the challenge and it worked just fine for me. All I can suggest is try it again. Good luck. :)

2 Answers

Steven Parker
Steven Parker
231,269 Points

I can confirm that this code passes the challenge when pasted in verbatim.

Give it another try.

yup retrying worked! thanks!