<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Tuples
Tuples are like Lists, but they are immutable, means once we assign a value to a tuple we cannot change it or it cannot be changed.
Tuple values are enclosed in (). Tuple can hold values of different types.
You can think of them as constant arrays.
Step1:  You can slice a tuple like you do in Lists.
Step2:  Remember that we are slicing the tuple for display purpose only. We cannot change a tuple.
Now lets try to change the value in a tuple and see what happens.
Step3:  So we have an error saying that tuple do not support item assignment. 
By this constraint tuples are of fixed size. A Tuple cannot grow, which means we cannot add an item once a tuple is created.
Step4:  Basic functions for tuples
There are only two functions available for tuples count() and index().
The index() returns the index of the value supplied and the count() returns the number of time a value appears in a tuple.
Step5:  A tuple value can be any python object, it can be a List, dictonary etc.
<ASSISTANT_TASK:>
Python Code:
t = (1,2.0,'Three')
t
t[0]
Explanation: Tuples
Tuples are like Lists, but they are immutable, means once we assign a value to a tuple we cannot change it or it cannot be changed.
Tuple values are enclosed in (). Tuple can hold values of different types.
You can think of them as constant arrays.
End of explanation
# Slicing
t[1:]
# Reversing a tuple
t[::-1]
Explanation: You can slice a tuple like you do in Lists.
End of explanation
t[0] = 10
Explanation: Remember that we are slicing the tuple for display purpose only. We cannot change a tuple.
Now lets try to change the value in a tuple and see what happens.
End of explanation
t[3] = 4
t.append(4)
Explanation: So we have an error saying that tuple do not support item assignment. 
By this constraint tuples are of fixed size. A Tuple cannot grow, which means we cannot add an item once a tuple is created.
End of explanation
# Finding the index of the value: 2.0
t.index(2.0)
# Number of values in a tuple
t.count('Three')
Explanation: Basic functions for tuples
There are only two functions available for tuples count() and index().
The index() returns the index of the value supplied and the count() returns the number of time a value appears in a tuple.
End of explanation
t = ('hello', {'element': 'Oxygen', 'weight': 15.999}, 1234)
t
# accessing the 2nd value in the tuple.
t[1]
# accessing the values in the dictionary which is the 2nd element in our tuple.
t[1]['element']
Explanation: A tuple value can be any python object, it can be a List, dictonary etc.
End of explanation
<END_TASK>