# Error in week 1 program assignment

**URL:** <https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618>\
**Category:** Advanced Computer Vision with TensorFlow\
**Tags:** week-module-1\
**Created:** [February 5, 2023, 6:28am UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618 "2023-02-05T06:28:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teena\_Varma](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Teena\_Varma](https://community.deeplearning.ai/u/Teena_Varma)\
**Post date:** [February 5, 2023, 6:28am UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618/1 "2023-02-05T06:28:55Z")

</div>

[advanced Computer vision using tensor flow]_[Week 1]_[program assignment]\_[error]…ValueError: too many values to unpack (expected 3)  
…in Visualization

---

<div class="post-metadata">

**Author:** ![balaji.ambresh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/balaji.ambresh/32/128697_2.png) [@balaji.ambresh](https://community.deeplearning.ai/u/balaji.ambresh)\
**Post date:** [February 7, 2023, 6:24am UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618/2 "2023-02-07T06:24:16Z")

</div>

Please move this topic to the right subcategory. Here’s the [community user guide](https://sites.google.com/deeplearning.ai/communityguideandfaqs/community-user-guide) to get started. Do share the stacktrace and the exercise where you see the error(s).

---

<div class="post-metadata">

**Author:** ![Teena\_Varma](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Teena\_Varma](https://community.deeplearning.ai/u/Teena_Varma)\
**Post date:** [February 7, 2023, 7:07am UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618/3 "2023-02-07T07:07:05Z")

</div>

ok i will move this topic to the right sub category.thank you

---

<div class="post-metadata">

**Author:** ![Wendy](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/wendy/32/8167_2.png) [@Wendy](https://community.deeplearning.ai/u/Wendy)\
**Post date:** [February 7, 2023, 7:41pm UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618/4 "2023-02-07T19:41:38Z")

</div>

Hi @Teena_Varma!

The error, “too many values to unpack (expected 3)” happens when you call a function that returns fewer than 3 values, but try to “unpack” the return value to 3 values like this:

```auto
x, y, z = func_that_returns_one_value()

```

I’m not sure where exactly you’re getting this error, but hopefully, this will be enough for you to figure out the problem. If not, please share a screenshot of the full stack trace. This is a good practice in general since it gives more context and makes it easier to help identify the problem.

---

<div class="post-metadata">

**Author:** ![Teena\_Varma](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@Teena\_Varma](https://community.deeplearning.ai/u/Teena_Varma)\
**Post date:** [February 9, 2023, 5:22am UTC](https://community.deeplearning.ai/t/error-in-week-1-program-assignment/268618/5 "2023-02-09T05:22:06Z")

</div>

Thankyou so much for your reply.
