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 trialStu Cowley
26,287 PointsKeep Getting that Horrid "Oops It Looks Like..." Error
Hey guys,
So I'm stuck on the 3rd part of the Lists and Strings code challenge, I'm not 100% if my code is wrong or if I am having a connection error to the site, but when I enter in the below code I get the "Oops! It looks like ..." (sorry can't read the rest of the error as this dialog window is in the way".
Is my code all wrong? Or is there a bug in the system?
Thanks
Stu : )
full_name = "Stu Cowley"
name_list = full_name.split(" ")
greeting_list = "Hi, I'm {}".format(full_name[0])
1 Answer
Stu Cowley
26,287 PointsFigured it out with a quick Google search. I thought I'd post my findings for anyone who runs into this issue later one:
full_name = "Stuart William Cowley"
name_list = full_name.split(" ")
greeting_list = "Hi, I'm Treehouse".split(" ")
greeting_list[2] = name_list[0]
I see it that we're replacing the index of 2 in the greeting_list and then replacing it with the index of 0 from the name_list being what ever your first name is. I'm guessing that's what we're doing, and I hope I have worded this correctly.