Example
Exponentiation and Roots
Operator ** for exponentiation and calculating roots in Python.
4 results
Example
Operator ** for exponentiation and calculating roots in Python.
Challenge
…distance between two points comes from Pythagoras: square the differences in x and in y, add them, and take the square root. Distance A to B: 600.0 m ** raises a number to a power: dx ** 2 is dx…
Quiz
…the remainder % , with practical uses Powers with ** and square roots Order of operations and brackets round() , abs() , min() , max() , shortcuts such as -= and dividing by zero How it works 15…
Example
Learning to import modules in Python. Modules extend your program capabilities.