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 trialAntony Hsu
4,377 PointsChallenge Task 3 is not passing for greeting_list.py
Below is code in error. It is not clear what is the fix for previous question. Thanks.
full_name = "X Y"
name_list = full_name.split()
greeting_list = "Hi, I'm X".split()
greeting_list.remove(greeting_list[2])
greeting_list.append(name_list[0])
greeting_list.remove(greeting_list[3])
greeting = ' '.join(greeting_list)
How do you create variable greeting that is the string "Hi, I'm X" ???
1 Answer
Stephen Bone
12,359 PointsHi Antony
Your second remove method call is unnecessary.
You've correctly already split your full name and only appended your first name to the greeting_list as instructed.
Hope it helps!