Develop a program that inputs ‘n’ values in a list and prints the product of the value and the position at which it resides in the list.
Develop a program that inputs ‘n’ values in a list and prints the product of the value and the position at which it resides in the list, i.e. product L(1)*1, product L(2)*2, and so on. For example:Position 1 2 3 4 5Value 5 3 7 1 4Output 5 6 21 4 20Note: The list does…