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
Смотрите видео Dictionary Data Type | Update and Delete Operations - Closer look at python data types онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь EdYoda 06 Февраль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 88 раз и оно понравилось 2 людям.