Skip to content

3.3.3.2 Operators

In the Python block-based programming environment, operators are used to perform numerical calculations, conditional comparisons, logical evaluations, and data processing. To make them easier to understand and use, Mind+ has broadly categorized these operator blocks into the following five types based on their functions:

Arithmetic operators

Blocks Note
image Basic arithmetic operators used to perform arithmetic operations such as addition, subtraction, multiplication, and division on numerical values.
image Extended data operations, used to perform more advanced mathematical or bitwise operations, including exponentiation, bitwise OR, bitwise AND, bitwise XOR, and bit shifts.

Comparison Operators

Blocks Note
image Used to combine multiple conditions and return a logical result.
image Boolean constant: true or false.

Data and Type Operations

Used to process data content or analyze its type information.

Blocks Note
image Indicates no content or control.
image Get the length of a string or list.
image Find the element with the largest value in the input sequence.
image Determine whether the input value is true.
image The data type of the return value.
image Determine whether a variable belongs to a specific data type.

Expression Evaluation

Evaluate the expression immediately and return the result.

Blocks col2
image Calculates the entered expression and returns the result.