There are two ways to convert a sequence of numbers separated with comma into tuple.
i) By split() method
ii) By eval() function
Take an example sequence : 1,2,3,4,5
i)
seq_of_numbers = "1, 2, 3, 4, 5"
tuple_of_numbers = tuple(seq_of_numbers.split(","))
print(tuple_of_numbers)
ii)
seq_of_numbers = "1, 2, 3, 4, 5"
tuple_of_numbers = eval(seq_of_numbers)
print(tuple_of_numbers)
Thats's it !