• Previously correct answers don't work

Question related to mission Shorter Set

 

Even when introducing correct answers to this task such as: if total: return set(sorted(data)[total:-total]) return data

Doesn't work it still throws error a strange error without any notes