Question: please show me step by step in python Task 3 - Using the same list from Task 1, do the following Change the first element

please show me step by step in python
please show me step by step in python Task 3 - Using

Task 3 - Using the same list from Task 1, do the following Change the first element to 1.5 - Add a new element 8.5 to the end of the list Insert the value 5.5 in between the existing elements 5 and 6 in the list Remove the existing element 10 The list is now out-of-order, so sort it! Task 4 - Create a tuple, where the first element is your name, and the second element is your student ID - Create a tuple, by using the tuple(...) function to convert the list from the previous tasks - Print out a random element of the second tuple, by using the rondom module and random.randranged function to choose a number between 0 and the length of the tuple - Write some code which will try to modify one of the tuples in some way (e.g., tries to change an existing element). This will cause the program to throw an error, and crash. When this happens, find the name of the error that occurs (something like "2???Error"). Remove the code causing the error, and just print the name of the error you found

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!