0
I am newbie just help me out please
How to do this ? What does % means in python coding? print(15 % 5)
4 Réponses
+ 9
it's a modulus operator. it outputs the remainder of division.
15 / 5 = 3
15 % 5 = 0
+ 7
Check Lesson 6.1
+ 2
This can help you:
4%2=0
4/2=2
0
That is the modulus operator, you can use that to output the reminder of division
For example:
10 % 4 = 2 instead of 2.5