Math in Python
The code below demonstrates some common mathematical operations in python as well as usage of Python's isinstance function.
The math library contains many methods including a method that ouputs the value of pi.
isinstance() function
In the next code cell, you will see how the isinstance() function works.
The isinstance() function checks to see if a variable holds a certain type of value like an integer, float, string, etc.
Last updated
Was this helpful?