$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · hard · #195
What is the output?
print(-7 // 2, -7 % 2)
-4 1
-3 -1
-4 -1
-3 1
Python floors towards negative infinity and its modulo takes the divisor's sign.
Play Problem Solving ▸
◂ #194
all Problem Solving — predict the output questions
#196 ▸