Q: 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.
[340, 390, 158, 178, 330, 32, 373, 84, 101, 365, 223, 413, 246, 120, 215, 172, 311, 74, 143, 228]
A:
381