Detailed Instructions: In this task, you are given a list of integers you need to calculate and return the range of the integers which is the difference between maximum and minimum element in the list.
Q: [185, 396, 366, 219, 118, 386, 129, 413, 417, 166, 186, 358, 378, 40, 29, 397, 238, 245, 390, 287]
A:
388