How to use "lesser" in a sentence

Sentences

During his twenties and early thirties, he had labored at a variety of lesser jobs for the government

I suppose we have to learn to live with the lesser of the evils."