On Oct 6, 3:09 am, sajuptpm <sajup...@gmail.com> wrote:
> I need a way to make following code working without any ValueError .
>
> >>> a, b, c, d = (1,2,3,4)
> >>> a, b, c, d = (1,2,3).

Why is it necessary to unpack the tuple into arbitrary variables.
a_tuple=(1,2,3)
for v in a_tuple:
    print v

for ctr in range(len(a_tuple)):
    print a_tuple[ctr]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to