Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

will print the following string :

view

 


You can split strings into substrings, using the function parse() . This takes two strings as input : the first is the string to split, the second is a string consisting of all the separators; it returns a list whose elements are the individual strings resulting from the split (or tokens):

...

s = string inline
This is a multiline string, with all sorts of characters such as double quotes (") or single quotes (') which are ignored in the inline context.
end inline

 Special characters

Some strings that are not easy to enter via a keyboard are defined as global variables. These are:

  • newline -  a new line character
  • tab - a tab character

An example of using these is:

Code Block
languagepy
greeting = "Hello" & tab & "world" & newline & "Pleased to see you!"
print(greeting)