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 trialHans Odessa
Courses Plus Student 428 PointsUsing println to output three items from a grocery list.
It was not clearly defined that the terms "grocery" and "list" needed to be added to answer.
I was told to create a list of three items, which I did and failed. After including Grocery List in the println I passed.
5 Answers
Marlon Henry
6,885 PointsDo you care to post the question and show your work? This way we can look it over together and see what was wrong and why it did not work. In my own experience I have missed the simple things until it was pointed out to me.
Hans Odessa
Courses Plus Student 428 PointsSorry, I did not realize that the question was put into a general forum.
Hans Odessa
Courses Plus Student 428 PointsCall the println function one time to print these items from a grocery list: "Bread", "Milk", "Honey". Separate each item in the list with the special newline character (\n).
obey me
1,135 Points\n means new line and this is the answer
println(" List:\nBread,\nMilk,\nHoney")
Hans Odessa
Courses Plus Student 428 PointsI understood the syntax part correctly. It was not made clear to me that "List" had to be included.
obey me
1,135 Pointsyes you had to ,did it work