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

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.

sillycase.py
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
231,275 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
231,275 Points

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