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 trialHaitham Mohamed
4,551 PointsGot the correct output in Workspaces but still not accepted (sillycase challenge)
def sillycase(itera):
length = len(itera)
len1 = 0-length
len2 = 0- (length + 1)
itera = itera.upper()
f_st = int(length / 2)-1
ron = f_st+1
ron2 = 0-ron
itera2 = []
itera2[ron2:]=itera
while f_st >= 0:
itera2[f_st:ron] = itera[f_st].lower()
ron -= 1
f_st -= 1
itera2[len1:]=["".join(itera2[len2:])]
return itera2
1 Answer
Steven Parker
229,644 PointsI'm not sure exactly what this does, but I can tell you that you're working way too hard!
Hint: This challenge should require only a few lines of code and no loops.