Answers for "too many values to unpack (expected 2) python"

0

too many values to unpack (expected 2) python

x, y, z = [1,2,3]
print(x)
print(y)
print(z)
#output - 1 2 3
x, y = [1,2,3]
print(x)
print(y)
#output - ValueError: too many values to unpack (expected 2)
Posted by: Guest on April-11-2022

Code answers related to "too many values to unpack (expected 2) python"

Python Answers by Framework

Browse Popular Code Answers by Language