Conception ya programme oyo ezuaka ba nombres entre 0 na 9.999 pe e imprimer version parle ya nombre.
Tala programme ya Python oyo ezuaka numéro ya entrée entre 0 na 9999 pe e imprimer équivalent na yango ya koloba na anglais. ``` def convertir_number_to_words(num): # fonction ya kobongola mituya na maloba ones = { 1: 'Moko', 2: 'Mibale', 3: 'Misato', 4: 'Minei', 5: 'Mitano', 6 : 'Motoba', 7: 'Sambo', 8: 'Mwambe', 9: 'Libwa', 10: 'Zomi', 11: 'Zomi na moko', 12: 'Zomi na mibale', 13: 'Zomi na misato', 14: ' Zomi na minei', 15: 'Zomi na mitano', 16: 'Zomi na motoba', 17: 'Zomi na nsambo', 18: 'Zomi na mwambe', 19: 'Zomi na libwa', } zomi = { 2: 'Ntuku mibale', 3: 'Ntuku misato', 4 : 'Ntuku minei', 5: 'Ntuku mitano', 6: 'Ntuku motoba', 7: 'Ntuku nsambo', 8: 'Ntuku mwambe', 9: 'Ntuku libwa', } # 1000s esika soki num == 0: zongisa 'Zero' nkoto = num // 1000 num = num % 1000 # 100s place bankama = num // 100 num = num % 100 eyano = '' soki bankoto != 0: eyano += moko[nkóto] + ' Nkóto ' soki bankama != 0 : eyano += moko[nkama] + ' Nkama ' soki num < 20 mpe num != 0: # mpo na mituya kati na 1 mpe 19 eyanola += moko[num] soki te: # mpo na mituya kati na 20 mpe 99 # 10s tia zomi = num // 10 # 1s esika moko = num % 10 soki zomi != 0: eyano += zomi[zomi]+ " " soki moko != 0: eyano += moko[moko]+ " " return answer.strip() num = int(input("Kotisa motango kati na 0 mpe 9999: ")) soki (num<0)