Ad
  • Custom User Avatar

    Does everything work in your Pycharm when you run your function more than once?

  • Custom User Avatar

    And also
    4 should == "IV": 'MIV' should equal 'IV'
    1 should == "I": 'MIVI' should equal 'I'

    but in my Pycharm everything compiles fine and hase no leading 'M'

  • Default User Avatar

    When using Python class and declaring methods with class scope, you need add @classmethod above the method declaration and add 'cls' to the beginning of method signature. Also remember to put the class name before all the class variables that used inside the given method

    @classmethod

    def from_roman(cls, roman)

  • Default User Avatar

    These tests are failing for no known reason.

    test.assert_equals(RomanNumerals.to_roman(1990), "MCMXC", '1990 should == "MCMXC"')
    test.assert_equals(RomanNumerals.from_roman(RomanNumerals.to_roman(1990)), 1990, '1990 should == 1990')

    I am unable to see and check the test suite that performs test on the code.

    FYI