What is % doing over here?

Greetings fellow learners, it is requested to explain what is
modulus operator doing over here?
I thought that % is the modulus operator and it is used in the following situation: x%y = remainder.
Then how is it used over here? How can it print?

You can read about the % use in python here: Percentage python