In this example, I have added an additional note, to change the 3-note pattern into a 4-note one.
You simply play the first note in each 3-note sequence twice. As in the previous examples, try it with both note values.
Another thing to remember is to practice these things in a musical context, not just to a metronome.
All tunes have their own "groove", and over some tempos and grooves one note value will sound better than another. Judge for yourself.