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

how an i change it ??

i dont know how to change treehouse to my first name as it said , can you help me please? the qestion is :(( Almost done! Now, change "Treehouse" in greeting_list to the first item in your name_list variable))

greeting_list.py
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()

1 Answer

Mar Bocatcat
Mar Bocatcat
7,405 Points

Hi Dana, try using your variables and splitting them inside the list like so : <p> full_name = "Dana a Yousif"
# This will store your name in a variable called full_name.

  name_list = list(full_name.split()) 
  # This will store the variable in a list split in the middle.

  Just remember that the method .split() is used to split variables. 
  So you have to specify it on the variable name. Please let me know 
  if you have any questions.  

</p>

thank you foe help, but what i dont understand is how to change treehouse to my first name the question is : (( Almost done! Now, change "Treehouse" in greeting_list to the first item in your name_list variable))