+ 1
What "%" do in the python language ?..I didn't understand what it do!
3 Respuestas
+ 6
it is a modulo not division
5 % 2 = 1 it returns remainder.
https://stackoverflow.com/questions/4432208/how-does-work-in-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 2
@aiden you literally wrote what I wrote 16 hours ago like really?
- 1
It's the modulo operator which calculates the remainder. eg.g 47 % 2 = 1