This is quite boring, I'm not going to lie. However, it will get your fingers moving and build coordination, stamina, and accuracy. We'll get to a more interesting exercise after this one.
Now this one is not boring. I've been using this for over 30 years, and it helps with improvisation too. Don't worry about that yet; just focus on the exercise. This one's in the key of C Major, but you want to learn it, ideally, in all keys.
Let's not worry about that right now either. It features in my book Creative Bass Technique Exercises and in my course Music Theory For Bass Players.

4 Common Scales For Bass Players
These can also be used to get the fingers moving, though there's much more to them than that. More on that later.

