What is the result of this code? >>> 7%(5 // 2) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the result of this code? >>> 7%(5 // 2)

Does know how to get answer? Why the answer is 1 and not 0.35?

29th Apr 2020, 1:42 AM
Thank You
1 Answer
+ 2
5//2 gives you 2 which is the quotient and 7%2 gives you 1 which is the remainder
29th Apr 2020, 3:39 PM
Anirban Bora
Anirban Bora - avatar