I Need help [SOLVED]
Iâm trying to make a ânumbers to wordsâ code but without def function. Also I canât use ready modules. I define numbers as: number = input(âplease enter any number: â) while not (number.isdigit()): print(âOnly integers allowedâ) print(âType any integer here: â) number = input() single_numbers = [ââ, âoneâ, âtwoâ, âthreeâ, ...] decimal = [âtenâ, âtwentyâ, âfourtyâ, ...] hundred = [âhundredâ,] thousand = [âthousandâ,] million = [âmillionâ,] word = ââ length = len(number) len_num = length up_change = 0 while len_num > 0: if number == â0â: word = âzeroâ break else: for i in .......... . . . How to continue this one? Actually Iâm asking for my native language. Because my languageâs number system is different. For example: 11 = eleven but itâs like ten+one and 1000 = one thousand in English but one + thousand in my language. I want to see the logic and apply to mine. Beside list also dictionary is ok too. Thanks in advance.