Task 12 Write a Python program that turns every item of a list into its square. Sample Input 1: [1, 2, 3, 4, 5, 6, 7] Sample Output 1: [1, 4, 9, 16, 25, 36, 49] Sample Input 2: [3, 5, 1, 6] Sample...




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 12<br>Write a Python program that turns every item of a list into its square.<br>Sample Input 1:<br>[1, 2, 3, 4, 5, 6, 7]<br>Sample Output 1:<br>[1, 4, 9, 16, 25, 36, 49]<br>Sample Input 2:<br>[3, 5, 1, 6]<br>Sample Output 2:<br>[9, 25, 1, 36]<br>

Extracted text: Task 12 Write a Python program that turns every item of a list into its square. Sample Input 1: [1, 2, 3, 4, 5, 6, 7] Sample Output 1: [1, 4, 9, 16, 25, 36, 49] Sample Input 2: [3, 5, 1, 6] Sample Output 2: [9, 25, 1, 36]

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here