"""

Author: Shay Fu
Date: Jume 13, 2020


Given a non-negative number "num", return True if num is within 2 of a multiple of 10. Note: (a % b) is the remainder of dividing a by b, so (7 % 5) is 2. See also: Introduction to Mod


near_ten(12) → True
near_ten(17) → False
near_ten(19) → True

"""

def near_ten(num):
  if num % 10 == 8 or num % 10 == 9 or num % 10 == 0 or num % 10 == 1 or num % 10 == 2:
    return True
  return False
    
