0

question from module 1 quiz

so the code is... x = 3 num = 17 print(num % x) the answer was 2 and i understand that it prints the remainder after 3 goes into 17 five time leaving you with a remainder of 2. but when i actually ran the code I got the result of 0. Can someone help me understand what is going on?

25th Sep 2020, 5:25 PM
Edward Hodgson III
Edward Hodgson III - avatar
2 Réponses