Numerical Operations | Sololearn: Learn to code for FREE!
0

Numerical Operations

please someone explain to me why 7 % (5//2) answer is 1? I don't get it

11th Nov 2018, 11:37 PM
Ron Sarzaba
Ron Sarzaba - avatar
1 Respuesta
+ 6
// (floor division or interger division in python) 5//2 =2 7% (5//2)=7%2 =1 Got it...
11th Nov 2018, 11:49 PM
Nandhini Murugesan
Nandhini Murugesan - avatar