How can I maintain a positive attitude when facing a long-term challenge or struggle, according to the Bible?

Maintaining a positive attitude with long-term challenges