• Custom User Avatar

    itertools.batched added in Python v3.12. Codewars uses Python v3.11.

  • Custom User Avatar

    Other than that, every other issue has been solved.

    There are "четыре *тысячная" and "девять *тысячная" remaining in the description.

  • Custom User Avatar
  • Custom User Avatar

    Thanks for explaining.

    I saw that in some test cases, the number 2 also happens to have something like this.

    For example, the number 32056:

    • My answer: тридцать два тысячи пятьдесят шесть
    • Expected: тридцать две тысячи пятьдесят шесть

    Is this also caused by the masculine-feminine relation between words?

    Also, I feel like this is something that should be mentioned in the description. I'm not a russian speaker and currently confused as to how to differ between masculine and feminine words.

  • Custom User Avatar

    Could you briefly explain the "девятьсот" exceptions or link an article to it? So far, I've only seen people argue on this topic on Yandex.

    Other than that, every other issue has been solved.

  • Custom User Avatar

    My bad. Intended to remove that before publishing but I forgot. Now, the "blyat'" is changed to "comrade".

  • Custom User Avatar

    "Odin" declines by gender: masculine - "odin", feminine - "odna", neuter (not in the kata) - "odno". The default form is masculine, while the word "tysyacha" (thousand) and the implicit word for 'part' (either whole as in 1.2 or fractional as in 2.1) are feminine.

  • Custom User Avatar
    • *двесте -> двести;
    • *девятсот (in some examples) -> девятьсот;
    • тысяч - thousand, expected to be nominative singular in the list starting with "1000 ->" -> тысяча;
    • *десяти тысячных - ten-thousandths, genitive plural -> десятитысячных;
    • "1.234 ... одна целая *двесте тридцать четыре *тысячная", same with 991.999 -> одна целая двести тридцать четыре тысячных.
  • Custom User Avatar

    Seriously, blyatspeak in tests?

  • Custom User Avatar

    Can you explain to me or refer to part of the description on why it should replace odin with odna even though it's not a float?

  • Custom User Avatar

    Right, I speed read that part and now I know why after reading it again. Thanks.

  • Custom User Avatar

    Please read the description carefully, especially the floats section.

  • Custom User Avatar
    test.assert_equals(russian_to_num("одна целая пятьдесят шесть сотая"), '1.56')
    

    If I translate this to latin first, it will parse the prefix as odna instead of odin.

  • Custom User Avatar
    test.assert_equals(num_to_russian('1.56'), "одна целая пятьдесят шесть сотая")
    

    This gives: 'один целая пятьдесят шесть сотых' should equal 'одна целая пятьдесят шесть сотая'

    Meanwhile in num_to_russian_cyrillic, 2F is сотых. There's a contradiction in the suffix for this test case.

  • Custom User Avatar

    Ok, if you think it's necessary

  • Loading more items...