Search for tag: "iterable"

Lesson 19.5 Dictionaries and For-Loops

Dictionaries 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 on October 27th, 2020 33 plays

Lesson 16.4 Range-Based For-Loops

Strings, lists, and tuples are not the only iterable types. In this video we introduce the range function, which creates another iterable value. This is going to allow us to do several things that we…

From  Hannah Lee on October 19th, 2020 30 plays

Lesson 15.8 Slice Assignment (OPTIONAL)

This video introduces an advanced topic that is completely optional and will not appear on any exam. Lists don’t just allow us to use a single position in an assignment statement. We can also…

From  Hannah Lee on October 10th, 2020 5 plays

Lesson 15.2 Complex Tuple Expressions

Tuples are very, very similar to strings. In this video we explore this similarity, showing that they support many of the same operations and methods.

From  Hannah Lee on October 10th, 2020 15 plays