---
title: "Discussion on \"Why Do We Need Functions?\" | Hashnode"
description: "Discussion on \"Why Do We Need Functions?\". Learn why Python needs functions and what happens under the hood: code objects, function objects, frames, and return values, explained simply."
url: "https://hashnode.com/posts/why-do-we-need-functions/6acf92d62721731ecc3b2acd"
---

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

Discussion

# [Why Do We Need Functions?](https://glitch-wh.hashnode.dev/why-do-we-need-functions?utm_source=hashnode&utm_medium=feed)

Learn why Python needs functions and what happens under the hood: code objects, function objects, frames, and return values, explained simply.

Oct 14 · 3 min read · glitch-wh.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[WAQAS HUSSAIN](https://hashnode.com/@glitch-wh)

@glitch-wh · Pakistan, UAE

  
[View profile](https://hashnode.com/@glitch-wh)

Student At UET Peshawar

Computer System Engineer, Python Developer and Aspiring Cybersecurity professional

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
