Formal:
* 您是一位很棒的老师。 (Nín shì yī wèi bàng de lǎoshī.) - This is the most formal way to say it, using the respectful "您" (nín) for "you" and the formal "老师" (lǎoshī) for "teacher."
* 您是一位优秀的老师。 (Nín shì yī wèi yōuxiù de lǎoshī.) - This is also formal, using "优秀" (yōuxiù) meaning "excellent" or "outstanding."
Informal:
* 你是个很棒的老师。 (Nǐ shì ge bàng de lǎoshī.) - This is more casual and uses the informal "你" (nǐ) for "you."
* 你是一位很棒的老师。 (Nǐ shì yī wèi bàng de lǎoshī.) - This is less formal than the first option, but still respectful, using "您" (nǐ) but with a less formal "老师" (lǎoshī).
* 你教得真好! (Nǐ jiào de zhēn hǎo!) - This translates to "You teach really well!" and is a more direct way to express appreciation for the teacher's teaching skills.
Other options:
* 您是一位非常有耐心的老师。 (Nín shì yī wèi fēicháng yǒu nàixīn de lǎoshī.) - "You are a very patient teacher."
* 您是一位非常有热情的老师。 (Nín shì yī wèi fēicháng yǒu rèqíng de lǎoshī.) - "You are a very passionate teacher."
The best way to say it depends on the context and your relationship with the teacher.