| Skip to content | https://python-bro-code.netlify.app/36-iterables#furo-main-content |
| Python Bro Code | https://python-bro-code.netlify.app/ |
|
Python Bro Code
| https://python-bro-code.netlify.app/ |
| Introduction to Jupyter Notebooks | https://python-bro-code.netlify.app/0-examples |
| Chapter 1: Print Statement | https://python-bro-code.netlify.app/1-print |
| Chapter 2: Variables and Data Types | https://python-bro-code.netlify.app/2-variables |
| Chapter 3: Type Casting | https://python-bro-code.netlify.app/3-type-casting |
| Chapter 4: User Input | https://python-bro-code.netlify.app/4-user-input |
| Chapter 5: Madlibs Game | https://python-bro-code.netlify.app/5-madlibs-game |
| Chapter 7: If-Elif-Else Statements | https://python-bro-code.netlify.app/6-if-statements |
| Chapter 8: Simple Calculator Program | https://python-bro-code.netlify.app/7-calculator |
| Chapter 9: Weight Converter Program | https://python-bro-code.netlify.app/8-weight-conversion |
| Chapter 10: Temperature Converter Program | https://python-bro-code.netlify.app/9-temp-conversion |
| Chapter 11: Logical Operators | https://python-bro-code.netlify.app/10-logical-operators |
| Chapter 12: Conditional Expressions (Ternary Operator) | https://python-bro-code.netlify.app/11-conditional-expressions |
| Chapter 13: String Methods | https://python-bro-code.netlify.app/12-string-methods |
| Chapter 14: String Indexing and Slicing | https://python-bro-code.netlify.app/13-string-indexing |
| Chapter 14: Email Slicer Program | https://python-bro-code.netlify.app/14-email-slicer |
| Chapter 15: Format Specifiers | https://python-bro-code.netlify.app/15-format |
| Chapter 16: While Loops | https://python-bro-code.netlify.app/16-while |
| Chapter 17: Compound Interest Calculator | https://python-bro-code.netlify.app/17-interest-calculator |
| Chapter 18: For Loops | https://python-bro-code.netlify.app/18-for |
| Chapter 19: Nested Loops | https://python-bro-code.netlify.app/19-nested-loops |
| Chapter 20: Countdown Timer | https://python-bro-code.netlify.app/20-timer |
| Chapter 21: Sets 🎲 | https://python-bro-code.netlify.app/21-lists-sets-tuples |
| 🛒 Shopping Cart Program | https://python-bro-code.netlify.app/22-shopping-cart |
| 📊 2D Collections (Nested Lists & Matrices) | https://python-bro-code.netlify.app/23-2d-collections |
| 🎯 Quiz Game | https://python-bro-code.netlify.app/24-quiz-game |
| 📖 Dictionaries | https://python-bro-code.netlify.app/25-dictionaries |
| 🍿 Concession Stand Program | https://python-bro-code.netlify.app/26-concession-stand-program |
| 🎲 Random Numbers | https://python-bro-code.netlify.app/27-random-numbers |
| 🎯 Number Guessing Game | https://python-bro-code.netlify.app/28-number-guessing-game |
| ✊✋✌️ Rock Paper Scissors Game | https://python-bro-code.netlify.app/29-rock-paper-scissors-game |
| 🎲 Dice Roller Program | https://python-bro-code.netlify.app/30-dice-roller-program |
| 🔐 Encryption Program | https://python-bro-code.netlify.app/31-encryption-program |
| 🔧 Functions | https://python-bro-code.netlify.app/32-functions |
| 🎯 Default Arguments | https://python-bro-code.netlify.app/33-default-arguments |
| 🏷️ Keyword Arguments | https://python-bro-code.netlify.app/34-keyword-arguments |
| ⭐ Args and Kwargs | https://python-bro-code.netlify.app/35-args-kwargs |
| 🔄 Iterables | https://python-bro-code.netlify.app/36-iterables |
| ✅ Membership Operators | https://python-bro-code.netlify.app/37-membership-operators |
| 📝 List Comprehensions | https://python-bro-code.netlify.app/38-list-comprehensions |
| 🔀 Match Case Statements | https://python-bro-code.netlify.app/39-match-case-statements |
| 📦 Modules | https://python-bro-code.netlify.app/40-modules |
| 🔍 Scope Resolution | https://python-bro-code.netlify.app/41-scope-resolution |
| 🎯 If name == “main” | https://python-bro-code.netlify.app/42-if-name-main |
| Chapter 43: Credit Card Validator | https://python-bro-code.netlify.app/43-credit-card-validator |
| 🏦 Banking Program | https://python-bro-code.netlify.app/44-banking-program |
| 🎰 Slot Machine Program | https://python-bro-code.netlify.app/45-slot-machine |
| 🎮 Hangman Game | https://python-bro-code.netlify.app/46-hangman-game |
| Chapter 46: Python Oop | https://python-bro-code.netlify.app/46-python-oop |
| 🏗️ Python OOP (Object-Oriented Programming) | https://python-bro-code.netlify.app/47-python-oop |
| 📊 Class Variables | https://python-bro-code.netlify.app/48-class-variables |
| 🧬 Inheritance | https://python-bro-code.netlify.app/49-inheritance |
| 🔀 Multiple Inheritance | https://python-bro-code.netlify.app/50-multiple-inheritance |
| Chapter 51: Abstract Classes | https://python-bro-code.netlify.app/51-abstract-classes |
| Chapter 55: Aggregation | https://python-bro-code.netlify.app/55-aggregation |
| Chapter 56: Composition | https://python-bro-code.netlify.app/56-composition |
| Chapter 57: Nested Classes | https://python-bro-code.netlify.app/57-nested-classes |
| Chapter 63: Lambda Functions | https://python-bro-code.netlify.app/63-lambda |
| Chapter 64: Sorting | https://python-bro-code.netlify.app/64-sorting |
| Chapter 65: Zip Function | https://python-bro-code.netlify.app/65-zip |
| Chapter 66: Recursion | https://python-bro-code.netlify.app/66-recursion |
| Chapter 71: Execution Time Measurement | https://python-bro-code.netlify.app/71-execution-time |
| Chapter 74: Iterators | https://python-bro-code.netlify.app/74-iterators |
| Chapter 75: Generators | https://python-bro-code.netlify.app/75-generators |
| Chapter 76: Generator Expressions | https://python-bro-code.netlify.app/76-generator-expressions |
| Chapter 77: Data Classes | https://python-bro-code.netlify.app/77-data-classes |
| Chapter 92: Create QR codes with Python in 4 minutes 📱 | https://python-bro-code.netlify.app/92-qr-codes |
| Chapter 93: Build a music player with Python 🎶 | https://python-bro-code.netlify.app/93-music-player |
|
Back to top
| https://python-bro-code.netlify.app/36-iterables |
|
View this page
| https://github.com/PavanMudigonda/python-bro-code/blob/main/docs/36-iterables.md?plain=true |
|
Edit this page
| https://github.com/PavanMudigonda/python-bro-code/edit/main/docs/36-iterables.md |
| ¶ | https://python-bro-code.netlify.app/36-iterables#iterables |
| ¶ | https://python-bro-code.netlify.app/36-iterables#open-notebook |
| https://colab.research.google.com/github/PavanMudigonda/python-bro-code/blob/main/36-iterables/36-iterables.ipynb |
| https://kaggle.com/kernels/welcome?src=https://github.com/PavanMudigonda/python-bro-code/blob/main/36-iterables/36-iterables.ipynb |
| ¶ | https://python-bro-code.netlify.app/36-iterables#video-tutorial |
| https://youtu.be/VL_g3LjsFqs |
| ¶ | https://python-bro-code.netlify.app/36-iterables#what-youll-learn |
| ¶ | https://python-bro-code.netlify.app/36-iterables#learning-objectives |
| ¶ | https://python-bro-code.netlify.app/36-iterables#concept-explanation |
| ¶ | https://python-bro-code.netlify.app/36-iterables#what-is-an-iterable |
| ¶ | https://python-bro-code.netlify.app/36-iterables#common-iterable-types |
| ¶ | https://python-bro-code.netlify.app/36-iterables#lists-ordered-mutable-reversible |
| ¶ | https://python-bro-code.netlify.app/36-iterables#tuples-ordered-immutable-reversible |
| ¶ | https://python-bro-code.netlify.app/36-iterables#strings-ordered-immutable-reversible |
| ¶ | https://python-bro-code.netlify.app/36-iterables#sets-unordered-mutable-not-reversible |
| ¶ | https://python-bro-code.netlify.app/36-iterables#dictionaries-ordered-python-3-7-mutable-reversible |
| ¶ | https://python-bro-code.netlify.app/36-iterables#the-iteration-protocol |
| ¶ | https://python-bro-code.netlify.app/36-iterables#iter-get-iterator |
| ¶ | https://python-bro-code.netlify.app/36-iterables#next-get-next-element |
| ¶ | https://python-bro-code.netlify.app/36-iterables#ordered-vs-unordered-iterables |
| ¶ | https://python-bro-code.netlify.app/36-iterables#the-reversed-function |
| ¶ | https://python-bro-code.netlify.app/36-iterables#practical-iteration-patterns |
| ¶ | https://python-bro-code.netlify.app/36-iterables#enumerate-get-index-and-value |
| ¶ | https://python-bro-code.netlify.app/36-iterables#zip-iterate-multiple-iterables |
| ¶ | https://python-bro-code.netlify.app/36-iterables#break-and-continue |
| ¶ | https://python-bro-code.netlify.app/36-iterables#checking-if-something-is-iterable |
| ¶ | https://python-bro-code.netlify.app/36-iterables#examples |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-1-iterating-over-different-types |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-2-reverse-iteration |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-3-dictionary-iteration |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-4-using-iter-and-next |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-5-enumerate-with-index |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-6-zipping-multiple-lists |
| ¶ | https://python-bro-code.netlify.app/36-iterables#example-7-processing-lines-from-string |
| ¶ | https://python-bro-code.netlify.app/36-iterables#practice-exercises |
| ¶ | https://python-bro-code.netlify.app/36-iterables#beginner-level |
| ¶ | https://python-bro-code.netlify.app/36-iterables#intermediate-level |
| ¶ | https://python-bro-code.netlify.app/36-iterables#advanced-level |
| ¶ | https://python-bro-code.netlify.app/36-iterables#common-mistakes-to-avoid |
| ¶ | https://python-bro-code.netlify.app/36-iterables#mistake-1-trying-to-reverse-unordered-iterables |
| ¶ | https://python-bro-code.netlify.app/36-iterables#mistake-2-modifying-list-while-iterating |
| ¶ | https://python-bro-code.netlify.app/36-iterables#mistake-3-exhausting-iterators |
| ¶ | https://python-bro-code.netlify.app/36-iterables#mistake-4-assuming-dictionary-order-in-old-python |
| ¶ | https://python-bro-code.netlify.app/36-iterables#real-world-applications |
| ¶ | https://python-bro-code.netlify.app/36-iterables#file-processing |
| ¶ | https://python-bro-code.netlify.app/36-iterables#database-results |
| ¶ | https://python-bro-code.netlify.app/36-iterables#web-scraping |
| ¶ | https://python-bro-code.netlify.app/36-iterables#data-analysis |
| ¶ | https://python-bro-code.netlify.app/36-iterables#challenge-projects |
| ¶ | https://python-bro-code.netlify.app/36-iterables#custom-iterator-class |
| ¶ | https://python-bro-code.netlify.app/36-iterables#batch-processor |
| ¶ | https://python-bro-code.netlify.app/36-iterables#sliding-window-iterator |
| ¶ | https://python-bro-code.netlify.app/36-iterables#chain-iterator |
| ¶ | https://python-bro-code.netlify.app/36-iterables#file-reader-with-iteration |
| ¶ | https://python-bro-code.netlify.app/36-iterables#navigation |
| 34. Args and Kwargs | https://python-bro-code.netlify.app/36-iterables#34-args-kwargs.md |
| 36. Membership Operators | https://python-bro-code.netlify.app/36-iterables#36-membership-operators.md |
| ¶ | https://python-bro-code.netlify.app/36-iterables#key-takeaways-from-video |
|
Next
✅ Membership Operators
| https://python-bro-code.netlify.app/37-membership-operators |
|
Previous
⭐ Args and Kwargs
| https://python-bro-code.netlify.app/35-args-kwargs |
| Sphinx | https://www.sphinx-doc.org/ |
| @pradyunsg | https://pradyunsg.me |
| Furo | https://github.com/pradyunsg/furo |
| 🔄 Iterables | https://python-bro-code.netlify.app/36-iterables |
| 🚀 Open Notebook | https://python-bro-code.netlify.app/36-iterables#open-notebook |
| 📺 Video Tutorial | https://python-bro-code.netlify.app/36-iterables#video-tutorial |
| What You’ll Learn | https://python-bro-code.netlify.app/36-iterables#what-youll-learn |
| Learning Objectives | https://python-bro-code.netlify.app/36-iterables#learning-objectives |
| Concept Explanation | https://python-bro-code.netlify.app/36-iterables#concept-explanation |
| What is an Iterable? | https://python-bro-code.netlify.app/36-iterables#what-is-an-iterable |
| Common Iterable Types | https://python-bro-code.netlify.app/36-iterables#common-iterable-types |
| 1. Lists - Ordered, Mutable, Reversible | https://python-bro-code.netlify.app/36-iterables#lists-ordered-mutable-reversible |
| 2. Tuples - Ordered, Immutable, Reversible | https://python-bro-code.netlify.app/36-iterables#tuples-ordered-immutable-reversible |
| 3. Strings - Ordered, Immutable, Reversible | https://python-bro-code.netlify.app/36-iterables#strings-ordered-immutable-reversible |
| 4. Sets - Unordered, Mutable, NOT Reversible | https://python-bro-code.netlify.app/36-iterables#sets-unordered-mutable-not-reversible |
| 5. Dictionaries - Ordered (Python 3.7+), Mutable, Reversible | https://python-bro-code.netlify.app/36-iterables#dictionaries-ordered-python-3-7-mutable-reversible |
| The Iteration Protocol | https://python-bro-code.netlify.app/36-iterables#the-iteration-protocol |
| 1. iter() - Get Iterator | https://python-bro-code.netlify.app/36-iterables#iter-get-iterator |
| 2. next() - Get Next Element | https://python-bro-code.netlify.app/36-iterables#next-get-next-element |
| Ordered vs Unordered Iterables | https://python-bro-code.netlify.app/36-iterables#ordered-vs-unordered-iterables |
| The reversed() Function | https://python-bro-code.netlify.app/36-iterables#the-reversed-function |
| Practical Iteration Patterns | https://python-bro-code.netlify.app/36-iterables#practical-iteration-patterns |
| 1. Enumerate - Get Index and Value | https://python-bro-code.netlify.app/36-iterables#enumerate-get-index-and-value |
| 2. Zip - Iterate Multiple Iterables | https://python-bro-code.netlify.app/36-iterables#zip-iterate-multiple-iterables |
| 3. Break and Continue | https://python-bro-code.netlify.app/36-iterables#break-and-continue |
| Checking if Something is Iterable | https://python-bro-code.netlify.app/36-iterables#checking-if-something-is-iterable |
| Examples | https://python-bro-code.netlify.app/36-iterables#examples |
| Example 1: Iterating Over Different Types | https://python-bro-code.netlify.app/36-iterables#example-1-iterating-over-different-types |
| Example 2: Reverse Iteration | https://python-bro-code.netlify.app/36-iterables#example-2-reverse-iteration |
| Example 3: Dictionary Iteration | https://python-bro-code.netlify.app/36-iterables#example-3-dictionary-iteration |
| Example 4: Using iter() and next() | https://python-bro-code.netlify.app/36-iterables#example-4-using-iter-and-next |
| Example 5: Enumerate with Index | https://python-bro-code.netlify.app/36-iterables#example-5-enumerate-with-index |
| Example 6: Zipping Multiple Lists | https://python-bro-code.netlify.app/36-iterables#example-6-zipping-multiple-lists |
| Example 7: Processing Lines from String | https://python-bro-code.netlify.app/36-iterables#example-7-processing-lines-from-string |
| Practice Exercises | https://python-bro-code.netlify.app/36-iterables#practice-exercises |
| Beginner Level | https://python-bro-code.netlify.app/36-iterables#beginner-level |
| Intermediate Level | https://python-bro-code.netlify.app/36-iterables#intermediate-level |
| Advanced Level | https://python-bro-code.netlify.app/36-iterables#advanced-level |
| Common Mistakes to Avoid | https://python-bro-code.netlify.app/36-iterables#common-mistakes-to-avoid |
| Mistake 1: Trying to Reverse Unordered Iterables | https://python-bro-code.netlify.app/36-iterables#mistake-1-trying-to-reverse-unordered-iterables |
| Mistake 2: Modifying List While Iterating | https://python-bro-code.netlify.app/36-iterables#mistake-2-modifying-list-while-iterating |
| Mistake 3: Exhausting Iterators | https://python-bro-code.netlify.app/36-iterables#mistake-3-exhausting-iterators |
| Mistake 4: Assuming Dictionary Order in Old Python | https://python-bro-code.netlify.app/36-iterables#mistake-4-assuming-dictionary-order-in-old-python |
| Real-World Applications | https://python-bro-code.netlify.app/36-iterables#real-world-applications |
| 1. File Processing | https://python-bro-code.netlify.app/36-iterables#file-processing |
| 2. Database Results | https://python-bro-code.netlify.app/36-iterables#database-results |
| 3. Web Scraping | https://python-bro-code.netlify.app/36-iterables#web-scraping |
| 4. Data Analysis | https://python-bro-code.netlify.app/36-iterables#data-analysis |
| Challenge Projects | https://python-bro-code.netlify.app/36-iterables#challenge-projects |
| 1. Custom Iterator Class | https://python-bro-code.netlify.app/36-iterables#custom-iterator-class |
| 2. Batch Processor | https://python-bro-code.netlify.app/36-iterables#batch-processor |
| 3. Sliding Window Iterator | https://python-bro-code.netlify.app/36-iterables#sliding-window-iterator |
| 4. Chain Iterator | https://python-bro-code.netlify.app/36-iterables#chain-iterator |
| 5. File Reader with Iteration | https://python-bro-code.netlify.app/36-iterables#file-reader-with-iteration |
| Navigation | https://python-bro-code.netlify.app/36-iterables#navigation |
| 🎓 Key Takeaways from Video | https://python-bro-code.netlify.app/36-iterables#key-takeaways-from-video |