---
title: "Discussion on \"Generators in Python\" | Hashnode"
description: "Discussion on \"Generators in Python\". Python generators are functions that generate an iterable sequence of values. Unlike regular functions, generators use the \"yield\" keyword instead of \"return\" to return a value and suspend the execution of the function. This allows generators to prod..."
url: "https://hashnode.com/posts/generators-in-python/64061a4a3c9efd335013a556"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generators in Python](https://devendraadhikari.com.np/generators-in-python?utm_source=hashnode&utm_medium=feed)

Python generators are functions that generate an iterable sequence of values. Unlike regular functions, generators use the "yield" keyword instead of "return" to return a value and suspend the execution of the function. This allows generators to prod...

Mar 6, 2023 · 1 min read · devendraadhikari.com.np  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#generators](https://hashnode.com/tag/generators)

## Written by

[Deven](https://hashnode.com/@404rex)

@404rex

  
[View profile](https://hashnode.com/@404rex)

Software Developer

"Passionate software developer with a focus on Python. Driven by a love for technology and a constant desire to explore and learn new skills. Constantly striving to push the limits and create innovative solutions.”

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
