Find the slope of this line:
Vertical lines have no change in the x values, making the denominator zero. You can't divide by zero*, ever, so vertical lines have no slope. This is called an undefined slope.
* Go on, try it. Plug 4 ÷ 0 in your calculator…. what do you get?