TechToFreedom
Published in

TechToFreedom

Iterable and Iterator in Python

Iterable and Iterator in Python
Photo by Claire Satera on Unsplash

Introduction

Iterable and Iterator are important concepts of Python. However, sometimes it could be confusing. This post will dive into these concepts and help you totally understand them.

Iterable VS Iterator

First of all, we should know that Iterable and Iterator are different. To be exact, Iterator is a subclass of Iterable. An…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store