We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ce422 commit 0a75994Copy full SHA for 0a75994
code/daniel/03_NumberToPhrase/NumberToPhrase.py
@@ -20,6 +20,7 @@
20
21
from ast import NotIn
22
import numbers
23
+from xml.dom import WrongDocumentErr
24
25
from cupshelpers import activateNewPrinter
26
@@ -59,7 +60,7 @@
59
60
61
pickANumber = input("Pick a number between 0 and 99: ")
62
intNum = int(pickANumber)
-# wordNum = ""
63
+wordNum = ""
64
tens_digit = intNum//10
65
ones_digit = intNum%10
66
actual_digit = (f"{tens_digit}{ones_digit}")
@@ -81,7 +82,8 @@
81
82
print(str(tensNumberList[intNum]))
83
break
84
elif intNum not in onesNumberList and intNum not in tensNumberList:
- print(str(tensNumberList[intNum//10]) + str(onesNumberList[intNum%10]))
85
+ wordNum = (tensNumberList(tens_digit))
86
+ print(str(wordNum))
87
88
89
0 commit comments