Intern — Middle
Conversion of Russian letters to their ordinal numbers
livecode
Task condition
Create a function that takes a string in Russian and returns a sequence of numbers separated by spaces. Each letter should be replaced with its ordinal value according to a dictionary, where the keys are the letters of the Russian alphabet (а: 1, б: 2, …, я: 33).
Example 1: Input: "абв" Output: "1 2 3"
Example 2: Input: "яблоко" Output: "33 2 13 16 12 16"