answered 2017-08-21 00:56:55 -0600
Why are you converting variable digit to an integer when it contains the string T1? Remove line
digit = int(digit)
and use digit directly as a string in twowindingchng_4.