How to iterate through dictionary to match key value to string value
Im trying to solve roman numeral leetcode in python. here is my code
i tried multiple ways of comparing the dictionary to the key value and then each single character of the string to the dictionary but dont know how to put it in code.