Question: Please help! What is wrong with these two program inputs? None of these answers are working :( Sort the list, ist (use the list sort

Please help! What is wrong with these two program inputs? None of these answers are working :( Please help! What is wrong with these two program inputs? None of

Sort the list, ist (use the list sort method). Submit History: X (10 of 10) 03/13/21 01:57:16 1st [1,2,3,4 ist.sort) print(1st) Given a dictionary d and a list ist, remove all elements from the dictionary whose key is an element of Ist. For example, given the dictionary (1:2, 3:4, 6:6, 7:8) and the list [1.7), the resulting dictionary would be (3:4, 5:6). Assume every element of the list is a key in the dictionary. Instructor Notes: CORRECTION: Do not assume that all the entries in the List 1st are keys in the Dictionary a O Submit History: (14 of 14) 03/13/21 01:48:37 1 1st 2 dict={1:2,3:4,5:6,7:8) for i ist: del dict(1) Sort the list, ist (use the list sort method). Submit History: X (10 of 10) 03/13/21 01:57:16 1st [1,2,3,4 ist.sort) print(1st) Given a dictionary d and a list ist, remove all elements from the dictionary whose key is an element of Ist. For example, given the dictionary (1:2, 3:4, 6:6, 7:8) and the list [1.7), the resulting dictionary would be (3:4, 5:6). Assume every element of the list is a key in the dictionary. Instructor Notes: CORRECTION: Do not assume that all the entries in the List 1st are keys in the Dictionary a O Submit History: (14 of 14) 03/13/21 01:48:37 1 1st 2 dict={1:2,3:4,5:6,7:8) for i ist: del dict(1)

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!