Do both a.c. and d.c. have polarity?

D.C. has polarity, but AC does not have

polarity. If you viewed a sine wave on an oscilloscope, you will notice that
the amplitude and direction are constantly varying. So its D.C. value
would be zero.