As a biology teacher, I can confirm that both are right. I prefer the botanic definition. In botany, tomatoes are considered fruits since they carry seeds. However, a nutritionist, covering another field of biology, would say tomatoes are vegetables, mostly due to its low concentration of sugar.