# How can slope be undefined?

$y = m x + q$.
So every line that can be expressed in this form has a slope $m$.
$x = k$.