No numerals test 4 and 5 failed | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

19th Feb 2020, 11:06 AM
Arthur Barbosa
Arthur Barbosa - avatar
7 Answers
+ 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 😅
19th Feb 2020, 11:27 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Arthur Barbosa , have you tried with my previous answer? It's working for me. I have tested it in code coach.
19th Feb 2020, 11:33 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Thanks 🇮🇳Omkar🕉 You're right!
19th Feb 2020, 11:40 AM
Arthur Barbosa
Arthur Barbosa - avatar
20th Oct 2020, 6:22 AM
イデリセ{非活性}
イデリセ{非活性} - avatar
0
Input: 1 dollar and 11 cents expected: one dollar and 11 cents your code: one dollar and oneone cents
19th Feb 2020, 11:22 AM
Mihai Apostol
Mihai Apostol - avatar
0
Mihai Apostol take a look again, I changed my code, the fail persists.
19th Feb 2020, 11:31 AM
Arthur Barbosa
Arthur Barbosa - avatar
19th Feb 2020, 11:35 AM
Mihai Apostol
Mihai Apostol - avatar