Teacher:In this task you will be given a list of integers. You should only return an integer if the first digit is the same as the last digit in the number. If an integer has a single digit, then it should be returned. If there are no integers that start and end with the same digit then an empty list ("[]") should be returned.
Teacher: Now, understand the problem? Solve this instance: [363, -24, -898, -435, 248, 882, -238, 258, -989, 966, 146, 342, 428, 443, 649, 275, 820, 36, -959, -983, -800, 52, 46, 8]
Student:
[363, -898, -989, -959, 8]