Search for tag: "dictionaries"
Advanced pythonSchedule a consultation There are many free resources that you can use for further learning.linkedin learning free with Cornell sign in. https://www.linkedin.com/learning/?u=76816458…
From Jacob Grippin
29 plays
|
|
Zoom Oct. 27. Nested Lists and DictionariesThis presentation explores the last built-in (as opposed to user-defined) types in this course. These types are often used to store data in files.We actually had an (accidental) sneak peak at these…
From Hannah Lee
38 plays
|
|
Zoom Oct. 22. More RecursionThe divide-and-conquer examples we saw in the previous session were on the easy side. In this session we look at some much more challenging examples.Included in this session is segregate, the most…
From Hannah Lee
63 plays
|
|
Lesson 19.8 Keyword Expansion (OPTIONAL)This video introduces an advanced topic that is completely optional and will not appear on any exam. Keyword expansion is the dictionary version of tuple expansion. It is used in modules like Kivy to…
From Hannah Lee
104 plays
|
|
Lesson 19.7 Mutable Table FunctionsDictionaries are mutables and support mutable functions. But this is a case where dictionaries are slightly different from lists. We are allowed to loop over a dictionary as we modify it, so long as…
From Hannah Lee
69 plays
|
|
Lesson 19.6 Immutable Dictionary FunctionsSince we can loop over dictionaries, that means we probably want to use them in functions with accumulators. In this video we show how to do this and why they are not that much different from lists.
From Hannah Lee
73 plays
|
|
Lesson 19.5 Dictionaries and For-LoopsDictionaries are not sliceable, but they are iterable. In this video we show the many different ways you can use a dictionary in a for-loop. The primary thing to understand is that you have to…
From Hannah Lee
96 plays
|
|
Lesson 19.4 Nested DictionariesIn this video we show that we can nest dictionaries just like we nested lists. In fact, a lot of real world data is represented this way. We show off a particularly complicated JSON file that…
From Hannah Lee
77 plays
|
|
Lesson 19.3 Dictionary VisualizationSince dictionaries are mutable, we must represent them with folders. In this video we show what these folders must look like. In doing so, we see that they look suspiciously similar to other folders…
From Hannah Lee
83 plays
|
|
Lesson 19.2 Dictionary AssignmentDictionaries are mutable. In this video we show how to alter there contents. This includes reassigning the value of a dictionary for a given key. But it also includes adding and deleting keys.
From Hannah Lee
79 plays
|
|
Lesson 19.1 Dictionary ExpressionsIn this video, we introduce a dictionary as a collection of key-value pairs. We also show how to write a dictionary expression in Python. It looks just like a JSON string, but without the quotes.
From Hannah Lee
94 plays
|