string to tuple python 3 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",)