how to convert a string to tuple in python code example
Example: string to tuple python
string = "mystring"
tuple1 = tuple(string)
# ('m', 'y', ' ', 's', 't', 'r', 'i', 'n', 'g')
tuple2 = string,
# ("my string",)
string = "mystring"
tuple1 = tuple(string)
# ('m', 'y', ' ', 's', 't', 'r', 'i', 'n', 'g')
tuple2 = string,
# ("my string",)