I have not been able to find the trick to do a continue/pass on an if in a for, any ideas?. Please don't provide explicit loops as solutions, it should be everything in a one liner.
I tested the code with continue, pass and only if...
list_num=[1,3]
[("Hola" if i == 1 else continue) for i in list_num]
Output of my trials :
[("Hola" if i == 1 else continue) for i in list_num]^
SyntaxError: invalid syntaxFile "<stdin>", line 1[("Hola" if i == 1 else pass) for i in list_num]^
SyntaxError: invalid syntaxFile "<stdin>", line 1[(if i == 1: "Hola") for i in list_num]^
SyntaxError: invalid syntax