This question was asked in Example 17

Why slope is 1/0 when parallel to y-axis

Roopa Sheshadri's image