Type a code inside the for loop so that counter variable named c is increased by one each time loop iterates. Can you guess how many times it will add 1?.
Using for loop and if statement, append the value minus 1000 for each key to the new list if the value is above 1000. i.e.: if the value is 1500, 500 should be added to the new list.
Thank you for visiting our website! We use essential cookies to help us understand and enhance user experience. By clicking “Accept”, you consent to the use of ALL the cookies.