Any idea why this code isn't converting the letters like it's supposed to ? :
num = input("Number is:")
for digit in num:
if (digit in ["a","b","c"]):
digit = "2"
elif (digit in[ "d","e","f"]):
digit = "3"
elif (digit in[ "g","h","i"]):
digit = "4"
elif (digit in[ "j","k","l"]):
digit = "5"
elif (digit in[ "m","n","o"]):
digit = "6"
elif (digit in[ "p","q","r","s"]):
digit = "7"
elif (digit in[ "t","u","v"]):
digit = "8"
elif (digit in[ "w","x","y","z"]):
digit = "9"
numlist = []
for digit in num: