Why doesn't cot^2 x + 1 = csc^2x work for 180 degrees in place of x?

Please help,I don't know why it doesn't work.
Thanks!

because csc 180 and cot 180 undefined.

sin 180 = 0, so csc and cot are undefined there.