filmov
tv
Why and when to use dictionaries in Python?

Показать описание
Every programmer has seen dictionaries but when I teach dictionaries in my beginners course, there is one question I have a hard time explaining: When should you use a dictionary? In this video, you get the answer to that question.
C H A P T E R S
0:22 Use lists to iterate
0:46 Lookups in lists might iterate the whole list
1:56 When are huge lists a problem?
3:15 What is a good case for dictionaries?
4:15 Benefit of dictionaries is that lookups are built-in
4:36 What is the datatype of the dictionary key?
5:05 Redundant information in the dictionary?
5:20 Generator expressions
M Y O N L I N E T R A I N I N G
#dictionaries #programming #python
C H A P T E R S
0:22 Use lists to iterate
0:46 Lookups in lists might iterate the whole list
1:56 When are huge lists a problem?
3:15 What is a good case for dictionaries?
4:15 Benefit of dictionaries is that lookups are built-in
4:36 What is the datatype of the dictionary key?
5:05 Redundant information in the dictionary?
5:20 Generator expressions
M Y O N L I N E T R A I N I N G
#dictionaries #programming #python