How would you convert an integer to a Roman numeral?
Implement int_to_roman(num) to return the canonical Roman numeral representation of num. Use standard subtractive notation, including IV, IX, XL, XC, CD, and CM.
The input is an integer from 1 through 3999, and the output is a string. The result must use uppercase Roman numeral symbols and contain no unnecessary repetitions.
def int_to_roman(num):