First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
answered Aug 21 '17
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.