There are people who write Python code like that, but it's an extreme minority. Here's the more likely way:
array = [1, 0, 2, 3]
new_array = [x * 2 for x in array
if x != 0]
Just as a matter of style, few Python programmers will use lambda outside something like this: array = [...]
arry.sort(key=lambda ...)