Mark As Completed Discussion

You must be wondering by now, are these the only mathematical operations supported by Python? The answer is no. Python supports a host of other operations, however, they are not provided using simple operators. These can be accessed through the Python math library. Simply put an import statement at the start of the program, and you can access more maths operators from there such as square root, floor and ceiling functions.

1var x = Math.floor(4.5);
2console.log(x); // prints 4
3
4var y = Math.sqrt(100);
5console.log(y); //prints 10

A comprehensive list of all operations provided by the Python math library can be read from their documentation here.