[Tutor] Pass arguments from bash script to embedded python script
Alan Gauld
alan.gauld at yahoo.co.uk
Wed Oct 23 17:53:33 EDT 2019
>On Thu, 24 Oct 2019 at 06:08, Stephen P. Molnar <s.molnar at sbcglobal.net> wrote:
>>
>
>fileList = ['C-VX3', '15-7', '14-7']
>fname = fileList
>for fname in fname:
Can I point out that this is a really bad idea. Having the item and the collection have the same name is a recipe for confusion. It's also entirely unnecessary since you already have the collection referenced as fileList, so you can just use
for fname in fileList:....
Alan g.
More information about the Tutor
mailing list