Programming Examples
Python program to enter a list containing number between 1 and 12 then replace all the entries in the list that are greater than 10 with 10
Ask the use to enter a list containing number between 1 and 12, then replace all the entries in the list that are greater than 10 with 10
Output/ Explanation:
Enter any List[4,12,5,10,11,7]
Before Replace list is [4, 12, 5, 10, 11, 7]
After Replace list is [4, 10, 5, 10, 10, 7]