Content will go here. Borrow from old tutorial, add in new concepts.

Mathematical Operators

Text goes here.

Mathematical Operators In Python

OperatorDescriptionExampleResult
+Addition5+38
-Subtraction2-8-6
*Multiplication3*1.54.5
/Division11/42.75
//Integer division (quotient)11//42
%Remainder (modulus)11%43
**Exponentiation3**29
()Parentheses2*(5+3)16

Built-In Mathematical Functions

Text goes here.

Built-In Mathematical Functions In Python

FunctionDescriptionExampleResult
abs(VALUE)Absolute value (force positive)abs(-7)7
max(VALUES)Largest value in a sequencemax(3, 5, 1, 4)5
min(VALUES)Smallest value in a sequencemin(3, 5, 1, 4)1
pow(BASE, EXPONENT)Exponentiation (power)pow(3, 2)9
round(VALUE [,DECIMALS])Round to a fixed number of decimalsround(3.14159, 2)3.14