Answer
(1, 2, 3, 7, 9, 0, 5)
1
(2, 3)
5
(1, 2, 3, 7, 9, 0)
(2, 3, 7, 9, 0)
Work Step by Step
1) print(t) => Prints out tuple = (1, 2, 3, 7, 9, 0, 5)
2) print(t[0]) => Prints the first element of tuple = 1
3) print(t[1: 3]) => Prints elements from index 1 to 2 = (2, 3)
4) print(t[-1]) => Prints the last element of tuple = 5
5) print(t[ : -1]) => Prints elements from index 0 to 6 = (1, 2, 3, 7, 9, 0)
6) print(t[1 : -1]) => Prints elements from index 1 to 6 = (2, 3, 7, 9, 0)