---
title: "Discussion on \"Mutable Default Parameters - Python\" | Hashnode"
description: "Discussion on \"Mutable Default Parameters - Python\". Introduction\nPassing in a default parameter like a list may lead to unexpected behavior from your program. In this article, we are going to see what mutable default parameters are and how to avoid some of the undesired consequences of using them.\nWha..."
url: "https://hashnode.com/posts/mutable-default-parameters-python/600c1c8c8304951e7434ec63"
---

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

Discussion

# [Mutable Default Parameters - Python](https://harunacodes.com/mutable-default-parameters-python?utm_source=hashnode&utm_medium=feed)

Introduction Passing in a default parameter like a list may lead to unexpected behavior from your program. In this article, we are going to see what mutable default parameters are and how to avoid some of the undesired consequences of using them. Wha...

Jan 23, 2021 · 5 min read · harunacodes.com  
Read the article

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

## Written by

[Haruna Njie](https://hashnode.com/@Rone)

@Rone · Vancouver, CA

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

Software Developer | Python | Django

A full-stack Python/Django and React/Nextjs developer.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
