Task 7 Assume, you have been given two lists. [Your program should work for any two given lists; make changes to the lists below and check whether your program works correctly] list_one = [1, 2, 2, 4,...




Must show it in Python:



Please show step by step with comments.



Please show it in simplest form.



Please don't use any functions




Please don't use any def func ()


Task 7<br>Assume, you have been given two lists. [Your program should work for any two given lists; make changes to the lists below and check whether your<br>program works correctly]<br>list_one = [1, 2, 2, 4, 5, 5, 7, 99, 200, 303, 70]<br>list_two = [1, 1, 2, 3, 3, 3, 4, 5, 200, 500, -5]<br>Write a Python program that creates<br>new list with all the unique elements of both the given lists. You need to make sure that there are no duplicates<br>in the resulting list. Finally, print the updated list.<br>Hint: You may create a third list to store the results. You can use membership operators (in, not in) to make sure no duplicates are added.<br>====== =====<br>!====== =====<br>Output for the above two lists: [1, 2, 4, 5, 7, 99, 200, 303, 70, 3, 500, -5]<br>===================================================================<br>

Extracted text: Task 7 Assume, you have been given two lists. [Your program should work for any two given lists; make changes to the lists below and check whether your program works correctly] list_one = [1, 2, 2, 4, 5, 5, 7, 99, 200, 303, 70] list_two = [1, 1, 2, 3, 3, 3, 4, 5, 200, 500, -5] Write a Python program that creates new list with all the unique elements of both the given lists. You need to make sure that there are no duplicates in the resulting list. Finally, print the updated list. Hint: You may create a third list to store the results. You can use membership operators (in, not in) to make sure no duplicates are added. ====== ===== !====== ===== Output for the above two lists: [1, 2, 4, 5, 7, 99, 200, 303, 70, 3, 500, -5] ===================================================================

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here