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 trialRujuta Shinde
1,712 Pointsi 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()
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()
2 Answers
Steven Parker
231,269 PointsI can confirm that this code passes the challenge when pasted in verbatim.
Give it another try.
Rujuta Shinde
1,712 Pointsyup retrying worked! thanks!
nakalkucing
12,964 Pointsnakalkucing
12,964 PointsHi 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. :)