Re: Moving away from BGT and learning python
You basically use triple quotes or triple ticks when you want to write multiline strings. This does not mean that string needs to be necessarily multiline, but writing single-line strings in tripple quotes makes no sense, although it's not an error.
Of course, instead of using multiline strings, you can just use escape sequences such as \n or \r, but it makes things less readable for code writer. For example:
"I'm a good boy.\nI'm the best guy in school.\nMy friends really like me."
Compare with this:
"""I'm a good boy.
I'm the best guy in school.
My friends really like me."""
You see, the second version as multiline string is much more readable.
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector