Affect is a verb that means to influence or produce a change in something or someone. Effect, on the other hand, is a noun that refers to the result or outcome of an action or event.
Knowing the difference between these two words is important because using the wrong word can change the meaning of a sentence. For example, saying “The medication had an affect on me” would be incorrect because affect is a verb, not a noun.