---
title: "Discussion on \"How Passing by Object Reference Works in Python\" | Hashnode"
description: "Discussion on \"How Passing by Object Reference Works in Python\". If you've ever modified a variable inside a Python function and been surprised or confused by what happened to it outside the function, you're not alone. This tripped me up for a long time.\nComing fro"
url: "https://hashnode.com/posts/how-passing-by-object-reference-works-in-python/69c5415810e664c5dadbf6e0"
---

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

Discussion

# [How Passing by Object Reference Works in Python](https://freecodecamp.org/news/how-passing-by-object-reference-works-in-python?utm_source=hashnode&utm_medium=feed)

If you've ever modified a variable inside a Python function and been surprised or confused by what happened to it outside the function, you're not alone. This tripped me up for a long time. Coming fro

Mar 26 · 4 min read · freecodecamp.org  
Read the article

-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#functions](https://hashnode.com/tag/functions)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Mokshita V P](https://hashnode.com/@vpmokshita)

@vpmokshita

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

Learning New Tools, Documenting the Journey

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
