interjection

ah

ah, AH, from Imitative

Used to express understanding, surprise, satisfaction, or another feeling, depending on the situation and tone.

“Ah, now I understand how the puzzle works!”

Where it comes from

This sound-based exclamation has been used in English for centuries and has similar forms in many languages.