The slope of the line which is equally inclined with co-ordinate axes is
m=±1
Given lines are 2x−y+7=0 and ky−k2x+y−2=0
Here, the slope is
M1=2,M2=k2k+1
If two lines with slope M1 and M2 are equally inclined to a line with slope m, then
(M1−m1+M1m)=−(M2−m1+M2m)
When m=1, we get
−(2−11+2)=⎛⎜
⎜
⎜
⎜⎝k2k+1−11+k2k+1⎞⎟
⎟
⎟
⎟⎠⇒−13=k2−k−1k2+k+1⇒2k2−k−1=0⇒(2k+1)(k−1)=0⇒k=−12,1
When m=−1, we get
−(2+11−2)=⎛⎜
⎜
⎜
⎜⎝k2k+1+11−k2k+1⎞⎟
⎟
⎟
⎟⎠⇒3=k2+k+1k+1−k2⇒2k2−k−1=0⇒k=−12,1
Hence, there exist 2 values of k.