Ad
  • Custom User Avatar

    oh thank you i could not understand where is the problem now i solved it , thank you dear!

  • Custom User Avatar

    You are not supposed to return 0 (an integer, which is not iterable, as the error says). You are supposed to return two lists.

  • Custom User Avatar

    i got this error when list is empty or there is one number in list,so i tried to fix it with if lst == [] or len(lst) ==1 return 0 but it doesnt return 0 ,though in pycharm it returns 0,here i got this error,dont know how to fix can anyone help?

    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 47, in _
    test_split_list([], 0)
    File "/workspace/default/tests.py", line 9, in test_split_list
    a, b = split_list(xs[:])
    ^^^^
    TypeError: cannot unpack non-iterable int object

  • Custom User Avatar

    I want to make a point, that "pangram" means a sentence using all letters from ONE language. As there are many languages using different alphabets, it's not obvious (cuz not specified in detials section) for which language we should check (english is not the only one languge in the world) or if we should detect it. For example: "The quick brown fox jumps over the lazy dog" is pangram in engilsh but it isn't in polish ¯_(ツ)_/¯.

    I ignore the fact that pangram is about sentences, but details says "Ignore numbers and punctuation.", where sentence is actually a string endend with some "punctuation".

  • Custom User Avatar

    At least once, means one or more times.

  • Custom User Avatar

    i can not understand it says:
    A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence "The quick brown fox jumps over the lazy dog" is a pangram.
    So in this sentence the letter 'h' is int the first word 'The' and in the 7th word also 'the lazy' The and the , h and e used two times why is this sentence a pangram?