password = input().strip() pdict = ['abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz'] new_pw = '' for i in range(len(password)): order = ord(password[i]) if ord('a') <= order <= ord('z'): for item in pdict: if password[i] in item: new_pw += ...