Learning to keep going despite difficulties