0

print(5 + 6 % 7)

Hello guys can anyone explain why the output is 11 ? I am confused 🤔

31st Aug 2022, 8:27 AM
ai_ml_dl ai_ml_dl
ai_ml_dl ai_ml_dl - avatar
1 Answer
+ 3
% returns reminder Since you cannot divide 6 by 7 because 7 * 0 + 6 = 6 so reminder is 6 So 5 + 6 = 11
31st Aug 2022, 8:29 AM
A͢J
A͢J - avatar