Skip to content

Commit 0a75994

Browse files
committed
Lab3 Update
1 parent 69ce422 commit 0a75994

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

code/daniel/03_NumberToPhrase/NumberToPhrase.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
from ast import NotIn
2222
import numbers
23+
from xml.dom import WrongDocumentErr
2324

2425
from cupshelpers import activateNewPrinter
2526

@@ -59,7 +60,7 @@
5960

6061
pickANumber = input("Pick a number between 0 and 99: ")
6162
intNum = int(pickANumber)
62-
# wordNum = ""
63+
wordNum = ""
6364
tens_digit = intNum//10
6465
ones_digit = intNum%10
6566
actual_digit = (f"{tens_digit}{ones_digit}")
@@ -81,7 +82,8 @@
8182
print(str(tensNumberList[intNum]))
8283
break
8384
elif intNum not in onesNumberList and intNum not in tensNumberList:
84-
print(str(tensNumberList[intNum//10]) + str(onesNumberList[intNum%10]))
85+
wordNum = (tensNumberList(tens_digit))
86+
print(str(wordNum))
8587
break
8688

8789

0 commit comments

Comments
 (0)