why is that sec is even function while csc is odd function??

sec(x) is 1/cos(x), and since cos(-x)=cos(x), it is an even function.

A similar argument applies to csc(x), which equals 1/sin(x), and sin(x) is an odd function.