Write statements to do the following:
(a) Create a list with 100 Boolean False values.
(b) Assign the value 5.5 to the last element in the list.
(c) Display the sum of the first two elements.
(d) Compute the sum of the first five elements in the list.
(e) Find the minimum element in the list.
(f) Randomly generate an index and display the element of this index in the list.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.