Перейти к содержимому

Python enumerate() and zip() in Depth | Advanced Python Lesson 39

Tekotive

0:00 / 0:00

Python enumerate() and zip() in Depth | Advanced Python Lesson 39

7 просмотров · 3 дн. назад
Tekotive
18 подписчиков
7 просмотров · 3 дн. назад
Learn Python enumerate() and zip() in depth: numbering items, pairing sequences, lazy zip objects and what happens when lengths differ. Lesson 39 of Advanced Python, an advanced Python course, continuing the lists, tuples, sets and dictionaries lessons. This lesson is built around one running example, a teacher's gradebook. Every code line is highlighted as it is explained. In this lesson: The reporting problem Set up the student records: scores Establish the first rule: enumerate Trace the next operation: index Explain the result: zip Predict the next record: score Apply the processing tool: short_scores Test the next case: zip Inspect the output: strict=True Find the boundary: ValueError Check correctness: enumerate Practice and bridge: len(names) CHAPTERS 0:00 The reporting problem 0:41 Set up the student records: scores 1:30 Establish the first rule: enumerate 2:17 Trace the next operation: index 3:04 Explain the result: zip 3:50 Predict the next record: score 4:36 Apply the processing tool: short_scores 5:23 Test the next case: zip 6:09 Inspect the output: strict=True 6:56 Find the boundary: ValueError 7:41 Check correctness: enumerate 8:28 Practice and bridge: len(names) Next: lesson 40 of this course. New to Python? Start with the beginner course, Python from First Principles:    • Python from First Principles   Full Advanced Python playlist, lessons 1 to 58:    • Advanced Python   New to the channel? Watch the intro first:    • How to Switch to Tech From a Non-Tech Back...   If this helped, subscribe so you do not miss the next lesson. From Tekotive. More lessons:    / @tekotive   #python #advancedpython #pythongenerators