So, now I need to split a string in a way that the first element goes into a string and the others in a list:
while($line = <STDIN>) { my ($s,@values) = split /\t/,$line; I am trying with: for line in sys.stdin: s,values = line.strip().split("\t") print(s) but no luck: ValueError: too many values to unpack (expected 2) What's the elegant python way to achieve this? Thanks -- https://mail.python.org/mailman/listinfo/python-list