beautypg.com

Python overview, Python syntax highlighting legend – MTS Multipurpose Elite User Manual

Page 284

background image

Python Overview

Python is an interpreted, general purpose, high-level programming language with an extensive resource
library. You can use Python to extend the functionality of the MTS TestSuite applications. For instance,
you can use Python for reading and writing to files, dynamic mathematical calculations, and manipulating
MTS TestSuite variables.

Python Syntax Highlighting Legend

Python uses color to make it easier to read code. The following table indicates the colors assigned to the
various elements.

Python Syntax Highlighting Legend

Color

Syntax Element

Red

Attribute

Bold red

Braces

Red

Character

Purple

Class Name

Green

Comments

Bold orange

Constant

Blue

Control Character

Fuchsia

Function

Blue, teal, dark green, dark
green, or dark red

Keywords

Sky blue

MTS TestSuite Variable

Orange

Number

Dark goldenrod

Operator

Red

Strings

Purple

Variable

284 | MTS TestSuite

Working with Variables