Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Collections (2016, retired 2019) Slices sillyCase

Just getting a "Bummer Try again!" message. Difficult to know whats wrong without feedback

I've written code that I think should be working. I can't figure out what's wrong.

def sillycase(args1):
    i = int(len(args1)/2)

    first = args1[:i]
    last = args1[i:]
    lower = first.lower()
    upper = last.upper()

    return lower + upper

2 Answers

Steven Parker
Steven Parker
215,939 Points

This looks OK to me, so I pasted it directly into the challenge and it passed!

Try again?

I copied and pasted the same thing in again and it worked!

Steven Parker
Steven Parker
215,939 Points

Odd, that's the second question today that worked without any changes. Perhaps the validation mechanism had some temporary issue.