+ 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.
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.
+ 1
Solved