Login and get codingGiven a string, reverse only the English letters (lowercase or uppercase) in the string, leaving all non-English letters and other characters (e.g. numbers) in their original position.
Example:
>>> from reverse_letters import reverse_letters
>>> string = "ab-cd"
>>> reverse_letters(string)
'dc-ba'Example 2:
>>> from reverse_letters import reverse_letters
>>> string = "ab5DEf"
>>> reverse_letters(string)
'fE5Dba'Example 3:
>>> from reverse_letters import reverse_letters
>>> string = "a-bC-dEf-ghIj"
>>> reverse_letters(string)
'j-Ih-gfE-dCba'Keep calm and code in Python!
33 out of 38 users completed this Bite.
Will you be the 34th person to crack this Bite?
Resolution time: ~40 min. (avg. submissions of 5-240 min.)