Oct-28-2016, 07:03 PM
Hello. If I have a string: 'ABC', how can I give each character a value so it can be coded?
ex: A = 1
B = 2
C = 3
input:
x = 'ABC'
output:
y = '123'
im new in python, maybe its an easy one but i cant find a way to do this. thanks for your attention
ex: A = 1
B = 2
C = 3
input:
x = 'ABC'
output:
y = '123'
im new in python, maybe its an easy one but i cant find a way to do this. thanks for your attention