T
Tung Wai Yip
I want to do
t = (1,2)
a,b = t # get a=1 and b=2
However when
t = (1,)
a,b=t
I got a "ValueError: unpack tuple of wrong size"
What I want is for a=1 and b=None. Is there a good way to do this?
Wai Yip Tung
t = (1,2)
a,b = t # get a=1 and b=2
However when
t = (1,)
a,b=t
I got a "ValueError: unpack tuple of wrong size"
What I want is for a=1 and b=None. Is there a good way to do this?
Wai Yip Tung