python user input to tuple
tuple(map(int,raw_input().split(',')))
Here is what the above code is Doing:
1. It’s taking the input from the user and splitting it into a list of strings.
2. It’s converting each string into an integer.
3. It’s converting the list of integers into a tuple.