$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #63
What is printed?
print(-7 % 3)
2
-1
1
-2
Python's modulo takes the divisor's sign, so the result is positive.
Play Problem Solving ▸
◂ #62
all Problem Solving — predict the output questions
#64 ▸