Task 4 Assume, you have been given two lists. [Your program should work for any two given lists; change the following lists and check whether your program works correctly for the code you have...




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 4<br>Assume, you have been given two lists. [Your program should work for any two given lists; change the following lists and check whether your program<br>works correctly for the code you have written]<br>list_one = [1, 2, 3, 4, 5, 6, 7, 8, 9]<br>list_two = [10, 11, 12, -13, -14, -15, -16]<br>Write a Python program that creates a new list with all the even elements of both of the given lists and prints the new list.<br>Hint: You may create a third list to store the even elements of the given lists.<br>=====<br>===== =====<br>Output for the above lists: [2, 4, 6, 8, 10, 12, -14, -16]<br>============<br>================<br>

Extracted text: Task 4 Assume, you have been given two lists. [Your program should work for any two given lists; change the following lists and check whether your program works correctly for the code you have written] list_one = [1, 2, 3, 4, 5, 6, 7, 8, 9] list_two = [10, 11, 12, -13, -14, -15, -16] Write a Python program that creates a new list with all the even elements of both of the given lists and prints the new list. Hint: You may create a third list to store the even elements of the given lists. ===== ===== ===== Output for the above lists: [2, 4, 6, 8, 10, 12, -14, -16] ============ ================

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here