Python 未转换为字符串的数字

Python 未转换为字符串的数字,python,Python,我的程序打印到99,但在99之后,输入不会转换为文字,即 如果我把450作为输入,那么这就是给定的错误。请帮我做这个 words_upto_19=['','one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', 'eleven' , 'twelve' , 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen',

我的程序打印到99,但在99之后,输入不会转换为文字,即
如果我把450作为输入,那么这就是给定的错误。请帮我做这个

words_upto_19=['','one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 
 'ten', 'eleven' , 'twelve' , 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', 
 'nineteen']

words_upto_tens =['','','twenty','thirty','fourty','fifty','sixty','seventy','eighty','ninety']
words_upto_999=['hundred and ']

a=int(input('enter the no. between 1 and 100:'))
if a==0:
    output='zero'

#for converting numbers above 1 till 19 into words.
elif a<=19:
    output=words_upto_19[a]

#for converting numbers above 20 till 99 into words.
elif a<=99:
    output= words_upto_tens[a//10] +" "+words_upto_19[a%10]

#for converting numbers above 99 till 999 into words.
elif a<=999:
    output=words_upto_999[a//100]+''+ words_upto_tens[a//10] +''+words_upto_19[a%10]
    
else:
    output='please enter the no. between 1 to 100'

print(output)
words_Uptou_19=['','1','2','3','4','5','6','7','8','9',
‘十’、‘十一’、‘十二’、‘十三’、‘十四’、‘十五’、‘十六’、‘十七’、‘十八’,
‘十九’
单词“最多十个=[”、“二十”、“三十”、“四十”、“五十”、“六十”、“七十”、“八十”、“九十”]
字数_至_999=['hundand']
a=int(输入('输入介于1和100之间的编号:'))
如果a==0:
输出='0'
#用于将1到19之间的数字转换为单词。

elif a块的逻辑
a是否允许使用库或仅从零开始使用?可以使用
elif a<=999:
    output=words_upto_19[a//100] + ' hundred and ' + words_upto_tens[(a%100)//10] + ' ' + words_upto_19[a%10]