Odd Syntax Error

I keep getting a syntax error on the 'V' : 5 line

dct= {
            'I' : 1
            'V' : 5
            'X' : 10
            'L' : 50
            'C' : 100
            'D' : 500
            'M' : 1000
        }

Any Ideas?

Where are the commas which go after every item in a dictionary?

1 Like

If you can’t figure out syntax errors you can usually start with a smaller part of it and add the rest in small increments ie

dct = {
}
dct = {
  'I': 1
}
dct = {
  'I': 1
  'V': 5
}
1 Like

This topic was automatically closed 18 hours after the last reply. New replies are no longer allowed.