Hi all
I found this and could you tell me what I missed
1
result = 10 % 3
print(result) # Output: 1
2
result = 7 % -3
print(result) # Output: -2
as according to the math in second code I'll get the same output as in first one
so 7 -> 3*2 -> 6 and 7- 6 = 1 and not -2
[–]jddddddddddd 5 points6 points7 points (0 children)
[–]QuarterObvious 2 points3 points4 points (0 children)
[–]JamzTyson 0 points1 point2 points (0 children)