0

numeric stuff on python

i cant understand what is the difference between normal division and the quotient and remainder. if anybody made it a little easier for me to understand itd be a big help!

12th Jan 2019, 6:33 PM
Κατερίνα Καλαφάτη
Κατερίνα Καλαφάτη - avatar
1 Resposta
+ 8
You have four pieces of cake and four kids. How many pieces of cake does each child get? That's normal division (4/4=1). You have seven pieces of cake and four kids. How many pieces does each child get (quotient)? That's floor division (7//4=1). How many pieces will be left (remainder)? That's modulo division (7%4=3).
12th Jan 2019, 6:46 PM
Anna
Anna - avatar