Question: Write Python code to answer the following questions: [ 3 0 marks ] Create a tuple T and a list L using the values: 7

Write Python code to answer the following questions: [30 marks]
Create a tuple T and a list L using the values: 79,88,99, 'John', 'Mary', 'David' and print the following:
i. Print the tuple T elements that are integers (Loop over each element to check for integer type)
ii. Print the list L elements that are strings (Loop over each element to check for integer type)
iii. State the main difference between tuple and list.

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!