Tenaciousness is a skill) For me it has always been a matter of perspective. Whenever I encounter a challenge that seems too difficult I will simply remind myself to look at it another way. When I start to feel like giving up on a task, I can reinvigorate myself by taking a step back and looking at a wider perspective. Simple statements to yourself like "Look at how far I have come already!" or "Think what I will have achieved when I am done" can really go a long way towards getting yourself back up and going.
Tenaciousness is also about attitude) The closest I came to giving up on this class was actually at the very beginning. When I learned about how differently this course would be structured and what it would ask of me I was frightened. I didn't want to do these things. But I changed my perspective and realized that this was the exact reason I am taking this course, to grow as a person. And you can't grow without being a bit afraid. So I moved past that, jumped in, and said "Here we go!"
Three tips) When you encounter difficulty 1. Look back and see what you have already overcome, 2. Look forward and see what you will achieve and how this challenge will change you, and 3. Take a step back and look at where you are, maybe there is an aspect to your problem that you never noticed before that can help you succeed.