Math operations, functions, and Flashcards
1
Q
%
A
Modulo/remainder
2
Q
Variable+=n
A
Operator Changes the value of a variable from its original value to its original value + n
3
Q
Variable-=n
A
Operator Changes the value of a variable to its original value -n
4
Q
round(float_value)
A
Rounds a float value up into an int data type
5
Q
int(float_value)
A
Rounds a float value down into an int data type
6
Q
Concatenation Operator
A
+
7
Q
Variable/=n
A
Operator changes the variable’s value to the original value divided by n
8
Q
Variable*=n
A
Operator changes the variable’s value to the original value multiplied by n
9
Q
Variable**=n
A
Operator changes the variable’s value to the original value to the power of n
10
Q
A