What if I'm using a function that returns a tuple, and I'm getting this error?

Question

Grade: Education Subject: Support
What if I'm using a function that returns a tuple, and I'm getting this error?
Asked by:
78 Viewed 78 Answers

Answer (78)

Best Answer
(324)
Inspect the function's return value. Print the tuple returned by the function to see its contents. If the tuple consistently has more than 4 elements, you need to either modify the function to return only 4 elements, or adjust your code to handle the extra elements using slicing or the asterisk operator as described above.