@PythonPr x = (1, 2, 3)
^ is a tuple, which is immutable (not able to be changed), resulting in the error.
x = [1, 2, 3]
^is a list, which could be changed.
@PythonPr D) error , the given problem is about tuple which is immutable so its value can't change and you are trying to change its 0 index value , so ans must be error
@PythonPr Answer is: D) Error,
Tuples are immutable, which means their elements cannot be changed after the tuple is created. The code attempts to modify the first element of the tuple x with the statement x[0] = 10. This action will result in a TypeError at runtime.
For More =>>