Development Environment | ![]() ![]() |
Entering Long Functions
If a statement does not fit on one line, use an ellipsis (three periods, ...)
to indicate that the statement continues on the next line, press Enter or Return to advance to the next line, and then continue entering the statement. For example,
s = 1 - 1/2 + 1/3 - 1/4 + 1/5 - 1/6 + 1/7 ...
- 1/8 + 1/9 - 1/10 + 1/11 - 1/12;
For items in single quotes, such as strings, put the quotes in each line. For example, entering the following long string
headers = ['Author Last Name, Author First Name, ' ... 'Author Middle Initial']
headers = Author Last Name, Author First Name, Author Middle Initial
The maximum number of characters allowed on a single line is 4096.
![]() | Entering Multiple Functions in a Line | Syntax Highlighting | ![]() |