This is the 1501st most frequent French word.
donnant
"Giving."
The word 'donnant' here functions as a gerund (present participle) to indicate the simultaneous action of giving advice during the giving of the book.
Je te remercie pour le livre que tu m'as donné en me donnant de bons conseils.
I thank you for the book you gave me while giving me good advice.
In this sentence, 'donnant' serves as a present participle that describes the student who is constantly giving their best effort.
Un élève donnant toujours le meilleur de lui-même réussit souvent.
A student always giving their best often succeeds.
The use of 'donnant' here indicates the continuous or habitual action performed by the merchant, as he regularly gives discounts.