Question: please show me step by step in python - Create a tuple, where the first element is your name, and the second element is your
- 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 random module and random. randrange( 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 "PP??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
Get step-by-step solutions from verified subject matter experts
