Ad
  • Custom User Avatar
    Traceback (most recent call last):
      File "/workspace/default/tests.py", line 3, in <module>
        from preloaded import army_get_secret_from_file, army_get_secret_from_file2
    ModuleNotFoundError: No module named 'preloaded'
    

    Sample tests

  • Custom User Avatar

    that was an issue in the tests. It should be good now (Just reload the page. Worst case: copy your code, then reset the trainer)

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar
    Traceback (most recent call last):
      File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
        func()
      File "/workspace/default/tests.py", line 85, in random_tests
        rand = sample([x for x in c.__dict__.keys() if not str(x).startswith('__')], 1)[0]
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/local/lib/python3.11/random.py", line 453, in sample
        raise ValueError("Sample larger than population or is negative")
    ValueError: Sample larger than population or is negative
    

    I got this error somehow

  • Custom User Avatar

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