(SOLVED!) Help me please to solve a Sololearn task | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

(SOLVED!) Help me please to solve a Sololearn task

Hey, guys! I need your help to solve Pig Latin task. So, when I first wrote my code I failed to pass 2 out of 5 tests (the tests I failed are "closed" ones). Then I thought that maybe it happened because I forgot to get rid of the punctuation so I updated my code and checked it in my development environment, every worked well. But in Sololearn I still fail to pass the very 2 tests from the beginning.Has anyone of you solved this task and can check my code? I'll be really grateful for your answers. Thanks in advance!😊 https://code.sololearn.com/cp868YUY18zS/?ref=app

22nd Apr 2023, 6:27 PM
Sky
Sky - avatar
2 Answers
+ 9
Sky i = i.replace(fir, '') X # this replaces dublicates also, not only first letter.
22nd Apr 2023, 6:40 PM
Jayakrishna 🇮🇳
+ 6
Thank you so much! It did work! Thank you 😊
22nd Apr 2023, 6:58 PM
Sky
Sky - avatar