When are 2 lines parallel?

It's where there are no solutions to the set of equations of the lines, right?

If they have the same slope

Indeed there will be no solutions