Implement a function to convert alphabetic characters in a string to their corresponding keypad digits based on a standard mobile phone keypad mapping.
Requirements
Functionality: The function convert_string_to_keypad_digits should accept a string consisting of upper or lower case alphabetic characters and return a string containing the digits as per the mobile keypad mapping:
'A', 'B', 'C' → '2'
'D', 'E', 'F' → '3'
'G', 'H', 'I' → '4'
'J', 'K', 'L' → '5'
'M', 'N', 'O' → '6'
'P', 'Q', 'R', 'S' → '7'
'T', 'U', 'V' → '8'
'W', 'X', 'Y', 'Z' → '9'
Input Requirements: The function should take a single argument:
input_string: A string containing alphabetic characters (A-Z, a-z).
Output Requirements: The function should return:
A string of digits corresponding to the characters in input_string, all in uppercase.
Additional Notes
Ensure that the input string is case insensitive by converting it to uppercase.
The function should handle empty strings and return an empty string in that case.
Implementation
The solution must be written in a file called /app/solution.py.