A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists. The only difference is that tuples can't be changed i.e., tuples are immutable.
Example
tup = ('query', 'home');
The empty tuple is written as two parentheses containing nothing:
tup = ();
To write a tuple containing a single value you have to include a comma even if it has only one value.
tup = (10,);
Like string indices, tuple indices start at 0, and tuples can be sliced, concatenated and so on.
Accessing Values in Tuples:
To access values in tuple, use the square brackets for slicing along with the index
#!/usr/bin/python
tup = ('query', 'home');
print "tup[0]: ", tup[0]
Output
tup1[0]: query