Ad
  • Default User Avatar

    that's a shortcut. Your code should be able to handle any kind of "simple" simplifications.

  • Custom User Avatar
  • Custom User Avatar

    Fixed :)

  • Custom User Avatar

    Same here. According to the link given by the error the author should just add someting like # -*- coding: utf-8 -*- on the first or second line. I've tried to add this at the beggining of my code, it doesn't work. Too bad 'cause I've spent some time in it and I can't get my points. Hope it'll be fixed soon.

    After some tests, adding

    c = VigenereCipher('カタカナ', 'アイウエオァィゥェォカキクケコサシスセソタチツッテトナニヌネノハヒフヘホマミムメモヤャユュヨョラリルレロワヲンー')
    test.assert_equals(c.decode('ドオカセガヨゴザキアニ'),'ドモアリガトゴザイマス')
    

    in test cases throws the same error. Simply adding # -*- coding: utf-8 -*- on the first line of the test cases fixed this.

    If someone could edit to add that snippet it would be great :)

  • Default User Avatar

    My program has 22 lines and when submitting I get this.
    File "main.py", line 39
    SyntaxError: Non-ASCII character '\xe3' in file main.py on line 39, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

    So, appearently there's something wrong about the backend testing script.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution