I saw this unfinished code on the internet:
class py_solution:
def int_to_Roman(self, num):
val = [
1000, 900, 500, 400,
?????,
????,
?
]
syb = [
"M", "CM", "D", "CD",
"C", "XC", "L", "XL",
"X", "IX", "V", "IV",
"I"
]
roman_num = ?
i = ?
while ???:
for _ in range(???):
roman_num += ???
num -= ???
i += ???
return ???
And I got curious about how to solve it. (I am new to Python, and this is not my homework)