Loading topic
for loops work. It also assumes you can already create a tuple, including the one-element form (3,).3 min reada, b = pair), list indexing and slicing, and how to write a for loop. Here you will learn how a starred target collects the leftover items of an unpacking.3 min readx, y = 3, 4), starred targets (first, *rest = items), and how a for loop assigns its loop variable. Here you apply those ideas to data that contains other data.2 min readfor loop works. It also assumes you have seen basic unpacking, where x, y = 3, 4 assigns the items of a sequence to separate names.3 min readfirst, *rest = items. Here you will use both ideas at function boundaries: on the way out through return, and on the way in through * in a call.3 min readfor loops. It collects the mistakes that come up most often and shows how to read each error message.3 min read