code: def toRoman(num):
      
      if not 0 < num < 5000:
          raise ValueError("number %n out of range (must be 1..4999)", num)
      if int(num) != num:
          raise TypeError("decimals %n can not be converted", num)
  
      result = ""
      for numeral, integer in romanNumeralMap:
          while num >= integer:
              result += numeral
              num -= integer
      return result
docs: convert integer to Roman numeral