Live Engine
Select Topic
easyOperators And Expressions
A developer migrating code from Python 2 to Python 3 notices silent arithmetic behavior changes. What does each expression produce in Python 3?
Code
print(7 / 2)
print(7 // 2)
print(-7 // 2)
print(7 % 2)
print(-7 % 2)