Ad
  • Custom User Avatar

    Even if I return False, it writes True should equal False, if I test my code not in codewars, it works, but when I test it there, it doesn't work

  • Custom User Avatar

    What shold I do, if it says True, should equal False, even if I print(False)?

  • Custom User Avatar
  • Custom User Avatar

    I have this problem:

    Traceback (most recent call last):
    File "/workspace/default/.venv/lib/python3.10/site-packages/codewars_test/test_framework.py", line 112, in wrapper
    func()
    File "/workspace/default/tests.py", line 52, in __
    test.assert_equals(from_base_64(s), expected)
    File "/workspace/default/solution.py", line 7, in from_base_64
    a = base64.b64decode(b)
    File "/usr/local/lib/python3.10/base64.py", line 87, in b64decode
    return binascii.a2b_base64(s)
    binascii.Error: Incorrect padding

    What should I do to fix it?