Python Script (Dynamo for Revit)

Hi I was trying to learn Dynamo for Revit and I was cheaking de excersice called " Core_Math" that is one of the example exercises, the problem is that I have a error in the python script that said "Import Error no module name Math ", I suppose the error is because the math library does not exist in python, I have worked in python in the anaconda program but in dynamo I do not know how to add libraries, if someone tells me how to solve this error I would be grateful.

Sorry for my english because I am not a native english speaker and recently I started to learn English

Add this:

# Import python library
import sys
python_path = r'C:\Program Files (x86)\IronPython 2.7\Lib'

Change the path to your ironPython installation path.

If you have put “Math” change it to “math” then it will work because math is lowercase and does not contain any uppercase letters in its module

Example(notice character Case):


or if you want work with Math class (.Net)