Hi Terry,
> I don't know why it didn't work before, I was concatenating a list
> containing 'mpg321' and the list containing my mp3 file references and
> getting the error about arg 2 only containing strings. I then added
> the -l and -m arguments to the first list and it is now working. Is a
> list with only one element somehow different?
No, and lists can also have zero items.
>>> ['mpg321'] + [] + '-q -m'.split() + [] + [] + sorted('banana')
['mpg321', '-q', '-m', 'a', 'a', 'a', 'b', 'n', 'n']
> I have worked through a good deal of my 'Learning Python' book
Fair enough.
> Finally, I am now definitely in the old dog stage of life :-)
:-) http://www.bournemouthu3a.org.uk/U3A2/lessons.php
Actually, that backgammon looks fun, but I don't think I'm old enough.
Cheers, Ralph.
--
Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
New thread: mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR