In this video I explain the difference between DIV and MOD, and how to use them in python. The knowledge of both of these functions is required for OCR GCSE Computer Science J277 Paper 2. DIV is Integer Division or floor division When dividing using DIV it returns the integer and discards the numbers to the right the decimal point. Do not think of it as rounding down - think of it as discarding the decimals. DIV is represented in python as //. DIV could be used to find the middle value in a binary search. MOD is modulo It returns the remainder of a division. It is represented in python by the % symbol. MOD could be used to decide whether a number is odd or even by looking at the remainder after dividing it by 2. Chapters 00:00 Using DIV and MOD in Python 00:05 DIV 01:16 MOD Specification reference: 2.2 Programming fundamentals 2.2.1 The common arithmetic operators