Python Generators

Generators are objects used to create iterable objects (eg functions) in Python and do not take up any memory space. For example, generating 100,000 values ​​and keeping them in a list will take up a lot of memory. So it would make sense to write a function that performs this operation in the form of... Continue Reading →

Python Iterators

We will try to learn how to create and use iterators and how to write our own objects as iterable. Let's first try to understand what iterators are What are Iterators? Iterators are actually used in Python even though we don't see them in most places. Iterators are especially encountered in for loops, list comprehensions,... Continue Reading →

Create a website or blog at WordPress.com

Up ↑

Design a site like this with WordPress.com
Get started