The slope of a line is
where
is the difference and
and
are the values.
In this case, the difference in
is 10 and the difference in
is 0
And division where the denominator being 0 leads to the answer being Undefined or Infinity as the line is directly on the
axis.