I don't know how the program works in detail (is that your question?) but there are few possibilities to see what % does.
As example with your code
1.1) _ _
17:3=5,6 round down->5×3=15 -> 17-15=2
I hope it's helpful 😅
well, thats because this sign % returns the remainder, thats its function, and the print function is used to print out a value to the screen.. How else can she explain more? what details do you want to know?
The answer is 2
This is because the % operator returns the remainder of the two numbers it is dividing.
in your code you are asking what the remainder is when you divide 17 by 3
3 can go into 17 five times, which would make 15. Then the operator takes 17 and 15 and finds the difference between the two, 17-15 = 2
its simple % this sign is called modulus it is used to obtain the remainder 17%3 means you want to know the remainder when 17 is divided by 3 well the closest whole number where 3 is giving is 15 and 17-15=2 that's how it is giving 2