Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please show me step by step in python Task 3 - Create a tuple, where the first element is your name, and the second element

please show me step by step in python image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

What were the reasons for your conversion or resistance?

Answered: 1 week ago

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago