Question: what is the difference between did not and didn't?
Answer: Didn't is a contraction for did not, and means the same thing. Contractions generally carry a connotation of informality. Decide on the right level of formality for the audience, and use the appropriate form. (For instance, in most spoken language didn't is more common; did not is more common in formal writing.)