0

Module 1 Quiz last question

Can someone please explain this to me?

12th Oct 2016, 12:33 AM
Elijah
Elijah - avatar
2 odpowiedzi
+ 2
This? What is the output of this code? >>> x = 3 >>> num = 17 >>> print(num % x) The "%" does the division between 17 and 3 and gets the remainder, in this case is 2. Examples: 7%2 = 1 8%3 = 2 9%3 = 0 100%45=10 Regards
12th Oct 2016, 5:56 AM
Santiago Brescia
Santiago Brescia - avatar
0
what is answer
23rd Oct 2018, 4:58 PM
Aaran SINGH-SALL
Aaran SINGH-SALL - avatar