*** Testing initialize_list (n, value)*** ['*', '*', '*', '*', '*', '*', '*', '*', '*', '*'] [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0] [-1,...


Create the function initialize_list(n, value) that takes as a parameter an integer n and a value. It creates 4 lists with length 10 where the initializers are taken from the list [ ‘*’, 10, 12.0 , -1], i.e. one list is all *s, another all 10’s etc. (Expected output is shown in the image attached)




*** Testing initialize_list (n, value)***<br>['*', '*', '*', '*', '*', '*', '*', '*', '*', '*']<br>[10, 10, 10, 10, 10, 10, 10, 10, 10, 10]<br>[12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0]<br>[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]<br>

Extracted text: *** Testing initialize_list (n, value)*** ['*', '*', '*', '*', '*', '*', '*', '*', '*', '*'] [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] [12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0, 12.0] [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1]

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here