I have a user entered string which is already in tuple format and would like to convert/cast it to a actual tuple in python. How can I do this? E.g:
strTup = '(5, 6)'
Would like to convert the above to the tuple (5, 6). I tried tuple(strTup)
which did not work as it made each character into its own tuple.