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 :)