What does the if statement inside this list comprehension do?

It makes sure a password is copied only if it contains "!" at least onceIt makes sure a password is copied only if it doesn't contain any "!"It doesn't do anything, the code is not correct

It makes sure a password is copied only if it contains "!" at least once.