+ 2
No numerals test 4 and 5 failed
I don't know what to do more, I changed my code several times and nothing, please anyone can help me? https://code.sololearn.com/cOn7i4SR7pCU/?ref=app
7 Antworten
+ 6
Arthur Barbosa ,
And culprit is....
(Drum rolls)
the lower() 👈😁method
just remove lower() from line 2:
x = str(input()) #.lower()
Many times in languages like python , overwhelmed with bunch of built in functions we use them even when not necessary 😅
+ 1
Arthur Barbosa , have you tried with my previous answer? It's working for me. I have tested it in code coach.
+ 1
Thanks 🇮🇳Omkar🕉 You're right!
0
Input:
1 dollar and 11 cents
expected: one dollar and 11 cents
your code: one dollar and oneone cents
0
Mihai Apostol take a look again, I changed my code, the fail persists.
0
Arthur Barbosa look at 🇮🇳Omkar🕉's answer