Why does my ballpark code fail on every test | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why does my ballpark code fail on every test

My code fails at every stage of testing even though when I tried it on the app it works fine but the code coach exercise fails https://code.sololearn.com/cGgnCoqL0J3D/?ref=app

19th Jan 2023, 12:45 PM
Gemuh Hans
4 Answers
+ 7
Gemuh Hans , i suppose your code is running now properly. i have worked out 2 new suggestions just to make the for loop a bit more readable. find more details in the attached file. https://code.sololearn.com/c0PKPAaNZt1d/?ref=app
19th Jan 2023, 5:45 PM
Lothar
Lothar - avatar
+ 5
Could you recheck the input word case matching with your texts..? I think first letter Should be capital? check in the description... edit: Gemuh Hans yes. Capitalize first letter.
19th Jan 2023, 1:04 PM
Jayakrishna 🇮🇳
+ 2
Lothar, Wow this is very explicit. The second version with the replacement is a great way
19th Jan 2023, 6:46 PM
Gemuh Hans
+ 1
Okay thank you
19th Jan 2023, 1:32 PM
Gemuh Hans