A, T, G, C and U are the most commonly used one-letter-code by biologists to indicate bases or nucleotides. There are also other one-letter-codes which encode the four bases and their ambiguous positions in a DNA sequence such as M, R, W, S, Y, K, V, H, D, B and N. These codes mean either of two bases/nucleotides, any of three bases/ nucleotides, or any base/nucleotide at all.
Let me explain these codes with the etymology, and I am sure that I would be a mnemonic to memorize these codes.