Teacher:In this task, you will be given a list of integers. You should remove all of the odd integers from the list(consider 0 an even number). If every integer in the input list is odd then an empty list ("[]") should be returned. Otherwise, answer with the list of even numbers separated by comma inside brackets.
Teacher: Now, understand the problem? Solve this instance: [40, 42, 77, -97, -36, 71, -6, 89]
Student:
[40, 42, -36, -6]