Читать книгу Introduction to Python Programming for Business and Social Science Applications - Frederick Kaefer - Страница 40

Operators and Delimiters

Оглавление

Operators and delimiters are special symbols that the Python interpreter uses to perform operations and to separate items. Both operators and delimiters work with other elements. Table 2.2 shows commonly used operators and delimiters. We will use these delimiters and operators within this book. For example, the “+” operator is used when we want to add two values together and the “,” delimiter is used to separate two items. The interpreter needs to have something (either an operator or a delimiter) between two distinct items, or it will not understand what it is being instructed to do with those items. The Python Language Reference specifies additional Python operators and delimiters (https://docs.python.org/3/reference/index.html).

Table 2.2

Introduction to Python Programming for Business and Social Science Applications

Подняться наверх