DLT:
- Write and apply mathematical expressions
- Apply coding concepts to convert integers to floats
- Use the exponent and modulus operators
- Increment and decrement values stored in variables
- Simulate real world mathematical equations with Python
Vocabulary
- Operator: A symbol that modifies or combines values. For example, + and - are operators that add or subtract values.
- Expression: A sequence of values or variables connected by operators. For example, the expression b - a + 1subtracts two variables and then adds the value 1.
- Binary Operator: An operator that only combines two values. Most of the operators that are commonly used in mathematical expressions like / and * are binary operators as the operation only involves the number before and after the operator.
- Modulus: The modulus operator is a binary operator that divides the first number by the second number and returns the remainder from that division operation. If the second number is a factor of the first number, the modulus operator will return 0.
- Incrementing: In programming, incrementing is the process of replacing a variable with the result of an operation and itself that increases the value stored in the variable. For example, x = x + 1 increments the value stored in x by 1.
- Decrementing: In programming, decrementing is the process of replacing a variable with the result of an operation and itself that decreases the value stored in the variable. For example, x = x/2 decrements the value stored in x by half of itself.
Activity:
- Tynker Python 201: Math Operators - In this lesson, students will learn to use Python math operators such as addition, subtraction, and division. Additionally, students will practice writing mathematical expressions throughout the modules.