Dear Professor [Name], 

I want to thank you for taking the time to share your knowledge and expertise with me. Your guidance, encouragement and insight have been invaluable to my learning. I am deeply grateful for the opportunity to learn from you. 

Sincerely, 
[Name]
Scrivi una lettera di ringraziamento a un professore!