Hey,

Sorry couldn’t find an explanation: why in the first case **if** is used after **for**:

numbers = [2, -1, 79, 33, -45]

negative_doubled = [num * 2 for num in numbers if num < 0]

print(negative_doubled)

and in the second case **if** is used before **for**

numbers = [2, -1, 79, 33, -45]

doubled = [num * 2 if num < 0 else num * 3 for num in numbers ]

print(doubled)

Sorry I’m a total beginner,

Thanks