Question: please show me step by step in python Task 3 - Create a tuple, where the first element is your name, and the second element
Task 3 - 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 two tasks - Print out a random element of the second tuple, by using the random module and random. randrange 0 function to choose a number between 0 and the length of the tuple Task 4 - Create a dictionary with 3 key-value pairs. For the first pair, the key should be "name", and the value should be your name For the second pair, the key should be "id", and the value should be your student ID For the third pair, the key should be "age", and the value should be your age - Using a for loop, print out the three keys of the dictionary (remember the .keys 0 method from your lectures)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
