The program takes a list with duplicates and splits it into 3 equal chunks. It removes duplicates from the original list. It then reverses the values of each chunk while printing them with the chunk numbers. It also prints the minimum and maximum values of a list after removing duplicates and converting it to a tuple.
The program takes a list with duplicates and splits it into 3 equal chunks. It removes duplicates from the original list. It then reverses the values of each chunk while printing them with the chunk numbers. It also prints the minimum and maximum values of a list after removing duplicates and converting it to a tuple.
The program takes a list with duplicates and splits it into 3 equal chunks. It removes duplicates from the original list. It then reverses the values of each chunk while printing them with the chunk numbers. It also prints the minimum and maximum values of a list after removing duplicates and converting it to a tuple.
Given_list = [15, 35, 7, 3, 41, 19, 35, 7, 89,96,51,15] a. Remove the duplicates from this list b. Split the given list into 3 equal chunks c. Reverse each chunk of list value while printing Expected output: Chunk 1 [15, 35, 7] After reversing [7, 35, 15] Chunk 2 [3, 41, 19] After reversing [19, 41, 3] Chunk 3 [89, 96, 51] After reversing it [51, 96, 89]
2. Write a python program print the output as expected:
Expected output:
a. user entered 10 - the output should be 55 (1+2+3+4+5+6+7+8+9+10)