7 Answers
+ 6
A space is a character like any other (:
+ 2
Thank you alot @Maya!!
+ 2
You can even have multiline strings in python ;)
+ 1
But I suppose you cant do a string with only spaces. @Bogdan Sass
+ 1
Yes, you absolutely can. Like Maya said, a space is just a regular character.
Try this:
mystring=' '
+ 1
Thank you alot!!! @Bogdan Sass
+ 1
Markup languages like HTML tend to have built-in trimming which prevents you from adding too many spaces. Most programming languages reference character codes or bytes. You can add spaces to your heart's desire. Although, what you always need to be careful of with spaces, is that they are not all the same. when you change fonts, so does your kerning change, and thus your entire layout.