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 trialandrei constantinescu
199 PointsRemember that using `+` means your strings need extra spaces
hoo do you create extra spaces in a string
name='andrei'
subject='Treehouse loves'
print (subject + name)
1 Answer
hebendjd
7,626 PointsA string is usually anything between two single or double quotes
string_1 = 'This string has spaces'
string_2 = 'This' + ' ' + 'string' + ' ' + 'has' + ' ' + 'spaces'