Teacher: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.
Teacher: Now, understand the problem? Solve this instance: [340, 390, 158, 178, 330, 32, 373, 84, 101, 365, 223, 413, 246, 120, 215, 172, 311, 74, 143, 228]
Student:
381