>>212563874It's not at all the same and your teacher is retarded
In French in indicates a sound change of the vowel ( for example wherher it's [e] or [ɛ]), because there's multiple ways to pronounce E.
In Spanish an accent on a vowel indicates that the stress of the word is found on that syllable in a way that is irregular compared to how the stress system is expected to work (typically it falls on the penultimate syllable of the word, if it doesn't, you use an accent to mark that). The sound of the vowel is still the same
For example El sofá is written that way to indicate it's prinounced so-FA, and not SO-fa like is typical for Spanish.
There's other uses for accents to distinguish words that are written the same but used differently, but it's not related to pronunciation at all.