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) Tuples Stringcases

David Garcia
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
David Garcia
Python Development Techdegree Graduate 11,254 Points

StringCases.py

I get the concept but i cannot execute it. Need help please

stringcases.py
def stringcases(string):
    string(enumerate("abc"))
    print(string).upper()
    print(string).lower()
    print(string).title()
    print(strin)[::-1]


stringcases()    

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,457 Points

You are very close! Instead of using print statements, the challenge want you to return a tuple of values. That is, each value separated by a comma (,) such as:

    return value1, value2, value3, value4

where each value is filled in with the correct case or reversal asked for in the challenge.

Post back if you need more of a hint. Good Luck!!