Winston Churchill put the difference memorably: “A pessimist sees the difficulty in every opportunity; an optimist sees the opportunity in every difficulty.”
I definitely struggle with this even though i am for all intents and purposes a cheerful person. What a paradox.