Z16151

{
    "Z1K1": "Z2",
    "Z2K1": {
        "Z1K1": "Z6",
        "Z6K1": "Z16151"
    },
    "Z2K2": {
        "Z1K1": "Z14",
        "Z14K1": "Z16150",
        "Z14K3": {
            "Z1K1": "Z16",
            "Z16K1": "Z610",
            "Z16K2": "def Z16150(Z16150K1):\r\n    import json\r\n\r\n    num = Z16150K1\r\n    numeric_words = { \".\": \"দশমিক\", \"0\": \"\", \"1\": \"এক\", \"01\": \"এক\", \"2\": \"দুই\", \"02\": \"দুই\", \"3\": \"তিন\", \"03\": \"তিন\", \"4\": \"চার\", \"04\": \"চার\", \"5\": \"পাঁচ\", \"05\": \"পাঁচ\", \"6\": \"ছয়\", \"06\": \"ছয়\", \"7\": \"সাত\", \"07\": \"সাত\", \"8\": \"আট\", \"08\": \"আট\", \"9\": \"নয়\", \"09\": \"নয়\", \"10\": \"দশ\", \"11\": \"এগারো\", \"12\": \"বারো\", \"13\": \"তেরো\", \"14\": \"চৌদ্দ\", \"15\": \"পনেরো\", \"16\": \"ষোল\", \"17\": \"সতেরো\", \"18\": \"আঠারো\", \"19\": \"উনিশ\", \"20\": \"বিশ\", \"21\": \"একুশ\", \"22\": \"বাইশ\", \"23\": \"তেইশ\", \"24\": \"চব্বিশ\", \"25\": \"পঁচিশ\", \"26\": \"ছাব্বিশ\", \"27\": \"সাতাশ\", \"28\": \"আঠাশ\", \"29\": \"ঊনত্রিশ\", \"30\": \"ত্রিশ\", \"31\": \"একত্রিশ\", \"32\": \"বত্রিশ\", \"33\": \"তেত্রিশ\", \"34\": \"চৌত্রিশ\", \"35\": \"পঁয়ত্রিশ\", \"36\": \"ছত্রিশ\", \"37\": \"সাঁইত্রিশ\", \"38\": \"আটত্রিশ\", \"39\": \"ঊনচল্লিশ\", \"40\": \"চল্লিশ\", \"41\": \"একচল্লিশ\", \"42\": \"বিয়াল্লিশ\", \"43\": \"তেতাল্লিশ\", \"44\": \"চুয়াল্লিশ\", \"45\": \"পঁয়তাল্লিশ\", \"46\": \"ছেচল্লিশ\", \"47\": \"সাতচল্লিশ\", \"48\": \"আটচল্লিশ\", \"49\": \"ঊনপঞ্চাশ\", \"50\": \"পঞ্চাশ\", \"51\": \"একান্ন\", \"52\": \"বায়ান্ন\", \"53\": \"তিপ্পান্ন\", \"54\": \"চুয়ান্ন\", \"55\": \"পঞ্চান্ন\", \"56\": \"ছাপ্পান্ন\", \"57\": \"সাতান্ন\", \"58\": \"আটান্ন\", \"59\": \"ঊনষাট\", \"60\": \"ষাট\", \"61\": \"একষট্টি\", \"62\": \"বাষট্টি\", \"63\": \"তেষট্টি\", \"64\": \"চৌষট্টি\", \"65\": \"পঁয়ষট্টি\", \"66\": \"ছেষট্টি\", \"67\": \"সাতষট্টি\", \"68\": \"আটষট্টি\", \"69\": \"ঊনসত্তর\", \"70\": \"সত্তর\", \"71\": \"একাত্তর\", \"72\": \"বাহাত্তর\", \"73\": \"তিয়াত্তর\", \"74\": \"চুয়াত্তর\", \"75\": \"পঁচাত্তর\", \"76\": \"ছিয়াত্তর\", \"77\": \"সাতাত্তর\", \"78\": \"আটাত্তর\", \"79\": \"ঊনআশি\", \"80\": \"আশি\", \"81\": \"একাশি\", \"82\": \"বিরাশি\", \"83\": \"তিরাশি\", \"84\": \"চুরাশি\", \"85\": \"পঁচাশি\", \"86\": \"ছিয়াশি\", \"87\": \"সাতাশি\", \"88\": \"আটাশি\", \"89\": \"ঊননব্বই\", \"90\": \"নব্বই\", \"91\": \"একানব্বই\", \"92\": \"বিরানব্বই\", \"93\": \"তিরানব্বই\", \"94\": \"চুরানব্বই\", \"95\": \"পঁচানব্বই\", \"96\": \"ছিয়ানব্বই\", \"97\": \"সাতানব্বই\", \"98\": \"আটানব্বই\", \"99\": \"নিরানব্বই\", \"100\": \"একশো\" }\r\n    \r\n    units = {\r\n        \"কোটি\": \"কোটি\", \"লক্ষ\": \"লক্ষ\", \"হাজার\": \"হাজার\", \"শতক\": \"শত\", \"একক\": \"\"\r\n    }\r\n\r\n    def smallint2word(num):\r\n        \"\"\"Convert integers numbers less than 10^7 into Bangla words\"\"\"\r\n        if num \u003C 0:\r\n            word = 'ঋণাত্মক '\r\n            num = abs(num)\r\n        else:\r\n            word = *\r\n        segments = dict()\r\n        segments['কোটি'] = num // 10000000\r\n        num = num % 10000000\r\n        segments['লক্ষ'] = num // 100000\r\n        num = num % 100000\r\n        segments['হাজার'] = num // 1000\r\n        num = num % 1000\r\n        segments['শতক'] = num // 100\r\n        num = num % 100\r\n        segments['একক'] = num\r\n\r\n        words = []\r\n        for segment in segments:\r\n            if segments[segment]:\r\n                words.append(numeric_words[str(segments[segment])] + \" \" + units[segment])\r\n        return ' '.join(words).strip()\r\n\r\n    def int2word(num):\r\n        \"\"\"Convert integer numbers into Bangla words\"\"\"\r\n        num = str(num)[::-1]\r\n        low = 0\r\n        high = 7\r\n        length = len(num)\r\n        splited = []\r\n        while low \u003C length:\r\n            splited.append(num[low:high])\r\n            low = high\r\n            high += 7\r\n        result = *\r\n        for i, part in enumerate(splited):\r\n            tmp = smallint2word(int(part[::-1]))\r\n            if i == 0:\r\n                result = tmp\r\n            elif tmp:\r\n                result = tmp + ' কোটি ' + result\r\n        return result.strip()\r\n\r\n    def int2spelledword(num):\r\n        bucket = []\r\n        for i in num:\r\n            if i == '0':\r\n                bucket.append('শূন্য')\r\n            else:\r\n                bucket.append(numeric_words[i])\r\n        return ' '.join(bucket)\r\n\r\n    def float2word(num):\r\n        \"\"\"Convert floating point numbers into Bangla words\"\"\"\r\n        _num = str(num)\r\n        p1, p2 = _num.split('.')\r\n        p1_word = int2word(int(p1))\r\n        p2_word = int2spelledword(p2)\r\n        full_word = p1_word + ' দশমিক ' + p2_word\r\n        return full_word.strip()\r\n\r\n    if isinstance(num, int):\r\n        word = int2word(num)\r\n    else:\r\n        word = float2word(num)\r\n    return word"
        }
    },
    "Z2K3": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11",
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1002",
                "Z11K2": "Bengali cardinal, python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1014",
                "Z11K2": "Kadịnal Bengali, Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1011",
                "Z11K2": "সংখ্যার বাংলা নাম (পাইথন)"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1004",
                "Z11K2": "cardinal en bengali, en Python"
            },
            {
                "Z1K1": "Z11",
                "Z11K1": "Z1430",
                "Z11K2": "Bengalische Kardinalzahl in Python"
            }
        ]
    },
    "Z2K4": {
        "Z1K1": "Z32",
        "Z32K1": [
            "Z31"
        ]
    },
    "Z2K5": {
        "Z1K1": "Z12",
        "Z12K1": [
            "Z11"
        ]
    }
}