I need help with the list comprehension equivalent for the below normal loop code
a = [1,2,3] b = [] for i in a : if i == 2 : b.append(i*2) else :