Can you keep count while exercising?


When athletes train, they normally do reps, a set, or a routine.

Can you think of an example of each of these exercise terms?

Build Leo, your personal trainer.


Leo, your personal trainer, will help you count your sit-ups.

If you have time, build your own design.

Let's try this code first.

SPIKE Life Hacks Repeat-5-times Step03-Program - en-us

You should see that Leo does some sit-ups by himself.

Count Leo's reps!


Now, use a variable to add a counting element to this program.

Insert the “set sit-ups” block at the beginning of the programming stack to define the value you’ll start counting from.

Add a “change sit-ups by 1” block when Leo has completed one sit-up.

Add the “reporter” block to the light block to visualize the content of your variable.

It could look something like this:

SPIKE Life Hacks Repeat-5-times Step04-Hint - en-us

Add a second variable to count calorie burn.


The calories will increase by 3 for each group of 5 sit-ups. 

Display calorie burn on the Programming Canvas.

You’ll need to create another variable that will count calories burned and display it with the Display block.

Now add some personality!


Use more bricks or change your program to give your trainer more personality.

Record a video of a workout.

Think about how you did. 


What did you do well? Is there anything you could’ve done better?

... 6, 7, 8, 9, 10… keep going, you’ve got this!