Question: 6. Write a Python program to replace last value of tuples in a list. Go to the editor Sample list: [(10, 20, 40), (40, 50,

6. Write a Python program to replace last value of tuples in a list. Go to the editor Sample list: [(10, 20, 40), (40, 50, 60), (70, 80, 90)] Expected Output: [(10, 20, 100), (40, 50, 100), (70, 80, 100)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
