Importing an output from another function
John Salerno
johnjsal at NOSPAMgmail.com
Sat Mar 18 15:37:05 EST 2006
Byte wrote:
> "Try this (I think its called "argument expansion", but I really don't
> know what its called, so I can't point you to docs):"
>
> This works, thanks. But how acn I get rid of the ugly surrounding
> brackets and commas?
>
> e.g. If the scripts overall output was (('B', 'C'),), how to change it
> to just B C?
>
You can get rid of the outer parentheses by removing the asterisk from
the parameter list. But the other parentheses: ('B', 'C') will remain,
because it's a tuple. You can access the values by indexing.
More information about the Python-list
mailing list