Okay, I have this string
tc=\'(107, 189)\'
and I need it to be a tuple, so I can call each number one at a time.
print(tc[
You can use the builtin eval, which evaluates a Python expression:
eval
>>> tc = '(107, 189)' >>> tc = eval(tc) >>> tc (107, 189) >>> tc[0] 107