Another way to say "taking a walk is for excercise" is "when you exercise taking a walk will do."