Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![John Smith](https://uploads.teamtreehouse.com/production/profile-photos/10240042/micro_tree.jpg)
John Smith
Python Web Development Techdegree Student 1,052 PointsDoes anyone know what this code is missing?
def packer(name=None, **kwargs): print(kwargs)
def unpacker(fist_name=None, last_name=None): if first_name and last_name: print("Hi {} {}!".format(first_name, last_name)) else: print("Hi no name!")
packer(name="Kenneth", num=42, spanish_inquisition=None) unpacker(**{"last_name": "Love", "first_name": "Kenneth"})
![Tanja Riet](https://secure.gravatar.com/avatar/73d181ac28a08f76c46b6394f8216b3e?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Tanja Riet
10,803 Pointshi, I see a misspelled word : "unpacker(fist_name " should be first_name".
2 Answers
![Alexander Davison](https://uploads.teamtreehouse.com/production/profile-photos/4157542/micro_binary.jpg)
Alexander Davison
65,469 Points- Indentation is not consistent.
- You called the first argument to
unpacker
fist_name
, but later on you refer to "first_name
". - I'm assuming this is not code for a [Treehouse] code challenge, but if it is, you may want to read the challenge instructions again. This is probably not what the challenge wants.
![John Smith](https://uploads.teamtreehouse.com/production/profile-photos/10240042/micro_tree.jpg)
John Smith
Python Web Development Techdegree Student 1,052 PointsThank you very much Alexander. This code is from the workspace's exercise. I looked at this code multiple time and I still was not able to catch that misspelling from "first_name". Thanks a lot, I will have to pay more attention to these kinds of errors.
![Alexander Davison](https://uploads.teamtreehouse.com/production/profile-photos/4157542/micro_binary.jpg)
Alexander Davison
65,469 PointsNo problem :)
![John Smith](https://uploads.teamtreehouse.com/production/profile-photos/10240042/micro_tree.jpg)
John Smith
Python Web Development Techdegree Student 1,052 Points <p>
def packer(name=None, **kwargs):
print(kwargs)
def unpacker(fist_name=None, last_name=None):
if first_name and last_name:
print("Hi {} {}!".format(first_name, last_name))
else:
print("Hi no name!")
packer(name="Kenneth", num=42, spanish_inquisition=None)
unpacker(**{"last_name": "Love", "first_name": "Kenneth"})
</p>
```
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsHello Ruddy,
Can you format your code properly so that the community can read it easily? Reference the Markdown Cheatsheet below the answer box![:arrow_heading_down: :arrow_heading_down:](https://image-proxy-cdn.teamtreehouse.com/3aa59b0d69e23b437da3548709632c5164e6e39c/68747470733a2f2f7374617469632e7465616d74726565686f7573652e636f6d2f696d616765732f656d6f6a692f756e69636f64652f323933352e706e67)