For more courses visit : https://www.edyoda.com/
In this video we will discuss the built in methods to update and delete the key & value pair from a dictionary. We will also discuss methods to merge two dictionaries and methods to create dictionary from lists.
Practice Problems on Python Data Types:
1) Given a list of test scores, where the maximum score is 100, write code that prints the number of scores that are in the range 0-9, 10-19, 20-29, ... 80-89, 90-100. For example, given the list of scores
[ 12, 90, 100, 52, 56, 76, 92, 83, 39, 77, 73, 70, 80 ]
The output should be :
(0,9): 0, (10,19): 1, (20,29): 0, (30,39): 1, (40,49): 0, (50,59): 2, (60,69): 0, (70,79): 4, (80,89): 2, (90,100): 3
Watch video Dictionary Data Type | Update and Delete Operations - Closer look at python data types online without registration, duration hours minute second in high quality. This video was added by user EdYoda 06 February 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 88 once and liked it 2 people.