Failed Test 3 In No Numerals Solution For Code Coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Failed Test 3 In No Numerals Solution For Code Coach

I can't pass because of a failed test in this code coach solution even though my solution is EXACTLY the same as the output. https://code.sololearn.com/cIQu9c3GD0x0/?ref=app

29th Jan 2023, 8:11 AM
Chuks AJ
Chuks AJ - avatar
9 Answers
+ 7
Chuks AJ You did a great job aswell, passing 4 out of the 5 tests. Programming is not about learning till you're an expert and you're done. There is always something new to learn. Don't compare yourself to someone else. Instead, compare yourself from yesterday. Today you've learned something new, and your goal is to always do so and apply the things you learned.
29th Jan 2023, 9:37 AM
blank
+ 5
Chuks AJ You got it well. Keep up the good work. My way of learning is pretty simple. I learn from several sources. I try to solve tasks on my own and I persevere until I get it done. In the beginning everything goes slower. Look at time as an investment. With time and practice you get faster and faster. Code Coach is good for the exercise. Try to solve all the tasks. This catapults you to the next level.
29th Jan 2023, 12:36 PM
JaScript
JaScript - avatar
+ 4
0-10, 10 included
29th Jan 2023, 8:28 AM
blank
29th Jan 2023, 9:11 AM
JaScript
JaScript - avatar
+ 2
Mirielle You're correct. The third test had most likely used the number 10 in the sentence. And your solution to the problem seems to be working great.
29th Jan 2023, 8:59 AM
blank
+ 2
Mirielle Thanks for your solution which passes all test. I especially liked your use of list comprehension which I need to study more. I abandoned my own solution as there was simply no workaround using the dictionary method "get" which passed the test.
29th Jan 2023, 9:24 AM
Chuks AJ
Chuks AJ - avatar
+ 2
JaScript Thanks also for your very elaborate solution with comments. I'm not sure how people write code like this, is it just lots and lots of practice? It made me feel very I adequate and I guess it's back to the books for me. :(
29th Jan 2023, 9:26 AM
Chuks AJ
Chuks AJ - avatar
+ 1
pullin I've added 10 as a key to my dictionary but it still doesn't pass that test.
29th Jan 2023, 8:31 AM
Chuks AJ
Chuks AJ - avatar
0
Thank you. Unfortunately, I do not know how to share links to code coach problems (I can't find a link) but the title of the problem is "No Numerals" and is a medium level problem.
29th Jan 2023, 8:28 AM
Chuks AJ
Chuks AJ - avatar