Let's replace the following alphabets with numbers according to the rules.
input_line = input()
translate = input_line.replace('D', '8').replace('F', '3').replace('K', '1').replace('N', '0').replace('W', '9').replace('Z', '4').replace('Q', '2').replace('J', '7').replace('V', '6').replace('T', '5')
print(translate)
#input
DSJKFHSJHAJK
#output
8S713HS7HA71
Replaced using python replace.
Recommended Posts