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 trial

Python Python Basics (Retired) Shopping List Lists and Strings

can you help me please

i don't understand what the question needs and what should i do . what is my mistake there?? thanks

greeting_list.py
full_name= ('dana a yousif')
name_list= 'dana a yousif'.split()
greeting_list =  list('hi, iam Treehouse')

2 Answers

The directions: Create a variable named greeting_list that's the string "Hi, I'm Treehouse" split on the spaces.

It seems the task is to split on the spaces for the string, "Hi, I'm Treehouse."

full_name= ('dana a yousif')
name_list= 'dana a yousif'.split()
# the list() method doesn't split.
greeting_list =  list('hi, iam Treehouse')

# we want to use the split method here
greeting_list = "Hi, I'm Treehouse".split()

Hope this helps.

Caleb Kleveter
MOD
Caleb Kleveter
Treehouse Moderator 37,862 Points

Also, make sure you use proper punctuation and capitalization; 'Hi, I'm Treehouse', instead of 'hi, iam Treehouse'.