Question: Write the programs/excercies in pyhton. Exercises Assume that the variable data refers to the list [5, 3, 7]. Write the values of the following expressions
Write the programs/excercies in pyhton.

![to the list [5, 3, 7]. Write the values of the following](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3ab0f61e81_07166f3ab0f118ce.jpg)
Exercises Assume that the variable data refers to the list [5, 3, 7]. Write the values of the following expressions a. data 21 b. data[-1] c. en(data) d. ] e. 0 in data f. data + [2, 10, 5] g. tuple(data) Assume that the variable data refers to the list [5, 3, 7]. Write the expressions that perform the following tasks a. Replace the value at position 0 in data with that value's negation. b. Add the value 10 to the end of data c. Insert the value 22 at position 2 in data d. Remove the value at position 1 in data 1. data [O:2 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
