---
title: "Discussion on \"The Mutable Default Argument Mess in Python\" | Hashnode"
description: "Discussion on \"The Mutable Default Argument Mess in Python\". Meet Kevin, 🙋‍♂️ Kevin is learning Python. One day he was given a problem to solve as follows:\n\nDesign a function that appends '#' to a list provided as an argument and then prints it. If no argument is provided then the function should use an empty..."
url: "https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b"
---

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

Discussion

# [The Mutable Default Argument Mess in Python](https://blog.yuvraj.tech/the-mutable-default-argument-mess-in-python?utm_source=hashnode&utm_medium=feed)

Meet Kevin, 🙋‍♂️ Kevin is learning Python. One day he was given a problem to solve as follows: Design a function that appends '#' to a list provided as an argument and then prints it. If no argument is provided then the function should use an empty...

Nov 18, 2020 · 5 min read · blog.yuvraj.tech  
Updated Dec 30, 2020  
Read the article

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

## Written by

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

@yuvraajsj18 · New Delhi, India

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

Computer Science Student

Hello! I'm Yuvraj. I'm a Computer Science Student. I love to learn, create, and explore new things. I am currently doing a Bachelor of Computer Science from the University of Delhi.

## Responses 3

Markdown supported · ⌘↵ to post

[Pradeep Rathore](https://hashnode.com/@PradeepRathore)

[Dec 19, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fdd8dc41485f22e24b344d2)

👍

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

[Dec 20, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fdd8dc41485f22e24b344d2#reply-5fdf1a41b78ac62dff80d8fb)

Thanks!

[Apoorv Tyagi](https://hashnode.com/@apoorvtyagi)

[Nov 30, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fc4f898bc24037614df9454)

Nice Article!!

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

[Nov 30, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fc4f898bc24037614df9454#reply-5fc531020a072175ef2cf93d)

Thanks!!

[Sunayna Padhye](https://hashnode.com/@SunaynaPadhye)

[Nov 18, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fb51027b589f1618af9eadd)

![index.jpg](https://cdn.hashnode.com/res/hashnode/image/upload/v1605701652527/0HsYK5hP0.jpeg)

[Yuvraj Singh Jadon](https://hashnode.com/@yuvraajsj18)

[Nov 18, 2020](https://hashnode.com/posts/the-mutable-default-argument-mess-in-python/5fb50e5ca73df361ab71253b/comment/5fb51027b589f1618af9eadd#reply-5fb5163db589f1618af9eba2)

Thanks, Sunayna
