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 trialIan Steele
7,253 Points\s is not an accepted answer in the quiz when adding a space to a string. Is this not correct? It works in workspaces.
name = "Ian" string = "Hello\sMy\sname\sis\s#{name}.\sWorkspaces\sis\sfun!" puts string
Adds spaces between words. However in the quiz question asking to add a space, \s fails.
1 Answer
Maciej Czuchnowski
36,441 PointsI just checked, added \s
to all fields, and it passed correctly. Perhaps you've added some extra character by accident?
headline = "Coding\swith\sTreehouse\sfun!"
Amir Tamim
8,597 PointsAmir Tamim
8,597 PointsThat's weird, because technically your code is correct. Maybe the quiz question doesn't want it in this particular format. I know the questions can often require a specific solution to the challenges. If you attach your code and the challenge question I could help more