The expression “mind your P’s and Q’s” (commonly used to mean “be on your best behavior”) has several possible origins.
It might have originated with printers telling their apprentices not to mix up the letter “p” with an upside down letter “q” when typesetting. Others think that the “p” stands for “please ” and “q” for a mispronunciation of “excuse me” or “thank you.”