1* Depuis means "since or for." It is used with a French verb in the present tense to talk about an action that began in the past and continues in the present.
Ex)
- Depuis quand étudiez-vous le français ?
How long have you studied French?
- J'étudie le français depuis 3 ans.
I've studied French for 3 years (and still do).
2* Pendant means "for" . Refers to the entire duration of an action in the past or future, with no relation to the present.
Ex)
Pendant combien de temps avez-vous étudié le français ?
How long did you study French?
J'ai étudié le français pendant 3 ans.
I studied French for 3 years (and then stopped).
Hope It'd help you out get rid of your confusion :)