Utilizor
Contact Us

Python Math

Built-in math functions.

Examples

Min and Max

Find lowest and highest value.

x = min(5, 10, 25)
y = max(5, 10, 25)

print(x)
print(y)

Math Module

Square root.

import math

x = math.sqrt(64)
print(x)

Pi

The value of PI.

import math

x = math.pi
print(x)

Test Your Knowledge

Python Quiz

No quiz available for this topic yet.