Konversi input string menjadi tuple bersarang di Python

import ast
inp = '((1, 2), (3, 4))'
inp = ast.literal_eval(inp)
print(inp)
motinxy