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

Basic Elements of Python Code

Оглавление

The Python programming language contains basic elements for specifying instructions. When a Python instruction is executed, the interpreter processes the instruction as a command, which is telling the processor what action it needs to perform. Some basic commands include assigning a value to a variable, adding two values together, and, as we saw in our first Python program in Chapter 1, printing a message to the console for a user to read. In order for the interpreter to operate efficiently, a limited number of basic elements are used to specify instructions. This section briefly introduces elements, including Python keywords, objects and classes, operators and delimiters, data types, and variables.

Introduction to Python Programming for Business and Social Science Applications

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