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 trialmahesh gurbaxani
1,420 Pointswhats wrong with this code
whats wrong with this code
full_name="mahesh gurbaxani"
full_name.split()
name_list=list(full_name.split())
greeting_list= ("Hi I'm Treehouse")
greeting_list.split()
greeting_list=list(greeting_list.split())
" ".join.(greeting_list)
2 Answers
Ron Fisher
5,752 PointsMahesh,
I see a couple of items that could be extra, not wrong.
- The "list(full_name.split())" is the same as full_name.split(). They both return a list.
- If the full_name.split() is not set to a variable then it only returns the results to the screen and is not saved.
I believe Aglaya resolved the other issue.
Ron
Aglaya Orinko
5,839 Points" ".join(greeting_list)