Write a Python program to convert an integer to a roman numeral. Try using this dictionary! roman_dictionary = {1000: "M
Posted: Fri May 20, 2022 5:58 pm
Write a Python program to convert an integer to a roman numeral. Try using this dictionary!
roman_dictionary = {1000: "M", 900: "CM", 500: "D", 400: "CD", 100: "C", 90: "XC", 50: "L", 40: "XL", 10: "X", 9: "IX", 5: "V", 4: "IV", 1: "I"}
Ex:
Input
4000
Output
MMMM
COM ACTIVITY 1113.1 LAB. Integer to Roman Numeral 0/0 mapy class conv) def int_to_Moran(self, rannu "Add code here 1 return roman main 10 IT 11 12 13 14 necon int(int) print (Inte) CHI Clear
roman_dictionary = {1000: "M", 900: "CM", 500: "D", 400: "CD", 100: "C", 90: "XC", 50: "L", 40: "XL", 10: "X", 9: "IX", 5: "V", 4: "IV", 1: "I"}
Ex:
Input
4000
Output
MMMM
COM ACTIVITY 1113.1 LAB. Integer to Roman Numeral 0/0 mapy class conv) def int_to_Moran(self, rannu "Add code here 1 return roman main 10 IT 11 12 13 14 necon int(int) print (Inte) CHI Clear