Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Strings are created by enclosing Unicode characters in double quotes. Strings are UTF-8 encoded.

Special characters

The only special character is ". You can put a double quote inside a string by escaping it with a backslash:

a = "I can put a quote character, \", in my string using a backslash"


A newline (\n) requires a line break:

b = "And a '
' too!"


Other characters can be inserted literally (some text editors are better at this than others), or consider using chr().

Issues

  • No labels