Teacher:In this task, you are given a list of numbers. The list of numbers is separated with comma and inside brackets. You need to remove the maximum(the number with the largest value) and minimum(the number with the smallest value) element from the list and return the list in the same order as input. Your answer should be a list of numbers separated by comma, inside brackets.
Teacher: Now, understand the problem? Solve this instance: [140, 259, 99, 233, 295, 254, 411, 426, 93, 483, 24, 355, 11, 404, 496, 314, 79, 21, 58, 246]
Student:
[140, 259, 99, 233, 295, 254, 411, 426, 93, 483, 24, 355, 404, 314, 79, 21, 58, 246]