Meaning: This means he expressed his appreciation to his teacher for helping him learn and succeed.
Choice of Words: Thanked is the past tense of thank, which means to express appreciation or gratitude to someone. Teacher is a person who teaches or instructs others. With gratitude means with a feeling of thankfulness and appreciation.