human
Converting string to tuple and adding to tuple
assistant
Here is some code to converting string '(1,2,3,4)' to a tuple

ast.literal_eval('(1,2,3,4)')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.