I'm getting a ValueError when I try to add a tuple to an existing tuple and I'm not sure what I'm doing wrong or if there is a better solution. I'm just trying to add a tuple into existing_tuple.
existing_tuple = ( (("test"), _("new")), (("test"), _("new")), (("test"), _("new")), (("test"), _("new")), ) tuple_to_add = ("kh", _("t8t86t")) existing_tuple = existing_tuple + tuple_to_add error: ValueError: too many values to unpack (expected 2)
https://stackoverflow.com/questions/67323078/why-am-i-getting-an-error-when-adding-at-tuple-to-another-tuple April 30, 2021 at 02:22AM
没有评论:
发表评论