You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
last_one=int(str(number)[-1:]) #calling the the last number that is being inputed
85
+
iflast_one==0: # its saying that its only calling the last number if it is 0
86
+
returnf'{ten[tens_digit]}'
70
87
71
88
elifnumber<999:
72
89
hundreds_digit=number//100#floor divide regular division with no remainder
73
90
hundreds_word=hundreds[hundreds_digit]
74
91
last_two=int(str(number)[-2:]) #python get last two digits in number stack exchange
75
92
last_one=int(str(number)[-1:])
93
+
76
94
77
95
78
96
@@ -85,7 +103,7 @@ def convert_number(number):
85
103
tens_word=ten[new_tens]
86
104
ones_word=low_numbers[ones_digit]
87
105
iflast_one==0:
88
-
returnf'{hundreds_word+" "+tens_word}'#placing this here to be able to get the numbers with 0 at the end, from having it say number then adding zero also placement beacause it needs to run all of that to be able to distinguish when it needs to use it
106
+
returnf'{hundreds_word+" "+ten[new_tens]}'#placing this here to be able to get the numbers with 0 at the end, from having it say number then adding zero also placement beacause it needs to run all of that to be able to distinguish when it needs to use it
0 commit comments