Question: 2. Given: B = (3.5, 3.7, 5.0, 10.6, 25.3, 50.6) a. Write the value of b after b = B [2: ] is executed. b.

2. Given: B = (3.5, 3.7, 5.0, 10.6, 25.3, 50.6) a. Write the value of b after b = B [2: ] is executed. b. Write the value of c after c=b[-2]+[0] on the B from part a. c. Is B a list or a tuple? d. Is b a list or a tuple? e. Is the operation: B[4] =25.382 allowed? Why or why not? 3. Given the lines of python code, write the value for the variable on the left of the equation. Note: assume we have already executed the line: import math a. x=[a for a in range (5) ] b. y=[math.cos (b*math.pi) for b in range (5) if (b%2)==0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
