How do you find slope of line passing through (1, 5) and (1, -7)?

As these points have the same $x$-values, the line must be vertical.
The equation of the line is $x = 1$.
You might say that the slope is infinite ($\infty$)