def solution(A):     return [value for value in range(min(A),max(A)) if value not in A] 

Read more of this post