Instructions: In this task, you are given an input list A. You need to convert all the alphabets in the list with a number representing their position in the English alphabet. E.g., replace A by 1, B by 2, a by 1, b by 2, and so on.
Input: ['v', 'Y', 'm', 'Y', 'h', 'Y', 'X', '137', '2049', '5419', 'E', 'W', 'U', '1733', 'K', 'd', '5061', 'I', '6935', 'v', '9847', 'R', 'Z', 'U', 'y', '9765', 'z', 'm', 'p', '6771', 'V', 'D', 'a', 'B', '5437', '1447', 'v', 'R', 'U']
Output:
22, 25, 13, 25, 8, 25, 24, 137, 2049, 5419, 5, 23, 21, 1733, 11, 4, 5061, 9, 6935, 22, 9847, 18, 26, 21, 25, 9765, 26, 13, 16, 6771, 22, 4, 1, 2, 5437, 1447, 22, 18, 21
Instructions: In this task, you are given an input list A. You need to convert all the alphabets in the list with a number representing their position in the English alphabet. E.g., replace A by 1, B by 2, a by 1, b by 2, and so on.
Input: ['v', 'Y', 'm', 'Y', 'h', 'Y', 'X', '137', '2049', '5419', 'E', 'W', 'U', '1733', 'K', 'd', '5061', 'I', '6935', 'v', '9847', 'R', 'Z', 'U', 'y', '9765', 'z', 'm', 'p', '6771', 'V', 'D', 'a', 'B', '5437', '1447', 'v', 'R', 'U']
Output:
user
22, 25, 13, 25, 8, 25, 24, 137, 2049, 5419, 5, 23, 21, 1733, 11, 4, 5061, 9, 6935, 22, 9847, 18, 26, 21, 25, 9765, 26, 13, 16, 6771, 22, 4, 1, 2, 5437, 1447, 22, 18, 21
assistant
Instructions: In this task, you are given an input list A. You need to convert all the alphabets in the list with a number representing their position in the English alphabet. E.g., replace A by 1, B by 2, a by 1, b by 2, and so on.
Input: ['v', 'Y', 'm', 'Y', 'h', 'Y', 'X', '137', '2049', '5419', 'E', 'W', 'U', '1733', 'K', 'd', '5061', 'I', '6935', 'v', '9847', 'R', 'Z', 'U', 'y', '9765', 'z', 'm', 'p', '6771', 'V', 'D', 'a', 'B', '5437', '1447', 'v', 'R', 'U']
Output:
22, 25, 13, 25, 8, 25, 24, 137, 2049, 5419, 5, 23, 21, 1733, 11, 4, 5061, 9, 6935, 22, 9847, 18, 26, 21, 25, 9765, 26, 13, 16, 6771, 22, 4, 1, 2, 5437, 1447, 22, 18, 21