+ 1

Task: Replace every elements of the string with alphabetic position.

https://code.sololearn.com/cuQH4qN2VCQM/?ref=app Hello, I need your help. I have solved half of the program. But I don't know how to handle in the cases when there are not letters but for example numbers and special characters. In these cases program should return "". On the beginning there are tests for checking. Thank you.

29th Aug 2022, 1:12 PM
TeaserCode
2 Answers
+ 1
Test case "0123456789" returns empty string but earse will through error for erasing on empty string. Only erase when length is atleast 1.
29th Aug 2022, 1:26 PM
Jayakrishna 🇼🇳
+ 1
Solved
29th Aug 2022, 7:58 PM
TeaserCode