repl.it
@MuntahaIslam/

Math in Pyhton.

Python

Math, arithmetic operators, precedence, etc.

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import math

# 99% Like Java, just, here to give power, we don't need Math.pow
# We do it like this:

x = 10 ** 3
print(x)

# Math operations are also avialable, for instance:

f = math.floor(2.987)
print(f)

print(abs(-4.56))
?