Welcome to the Treehouse Community
Looking to learn something new?
Martel Gaines1,957 Points
My full name entered as a list variable
I'm having an issue with inputting my full name as a list function for name_list variable. I'm currently performing the following action: name_list = list("Martel," "Gaines") or using the existing variable of full_name = "Martel Gaines as name_list = list(full_name)
I'm being returned an error that my name does not match my full name. Has anyone been stuck on this challenge?
full_name = "Martel Gaines" name_list = list("Martel Gaines")
William LiCourses Plus Student 26,865 Points
In your code, the value of name_list would becomes
# => ['M', 'a', 'r', 't', 'e', 'l', ' ', 'G', 'a', 'i', 'n', 'e', 's']
What the challenge is expecting the name_list to be is ["Martel", "Gaines"]
Hint: Use the .split() method on the string.