[Tutor] How to list/process files with identical character strings

Peter Otten __peter__ at web.de
Tue Jun 24 22:10:33 CEST 2014


Peter Otten wrote:

> for fileset in days.values():
>     if len(fileset) > 1:
>         # process only the list with one or more files

That should have been

          # process only the lists with two or more files

>         print("merging", fileset)




More information about the Tutor mailing list