I am striving to convert a string to a tuple without splitting the characters of the string in the process. Can somebody suggest an easy method to do this. Need a one liner.
You can use the following solution:
s="jack" tup=tuple(s.split(" ")) output=('jack')